Skip to content

Conversation

@Jarod42
Copy link
Contributor

@Jarod42 Jarod42 commented Nov 28, 2022

What does this PR do?

Handle entrypoint for msc (for no vs* action).

How does this PR change Premake's behavior?

Just change msc toolset for entrypoint "somefunc"

Anything else we should know?

Tested locally (not on https://github.com/Jarod42/premake-sample-projects as usual #2003 (--cc=msc) would be required there to test it properly.

Did you check all the boxes?

  • Focus on a single fix or feature; remove any unrelated formatting or code changes
  • Add unit tests showing fix or feature works; all tests pass
  • Mention any related issues (put closes #XXXX in comment to auto-close issue when PR is merged)
  • Follow our coding conventions
  • Minimize the number of commits
  • Align documentation to your changes

table.insert(flags, "/SUBSYSTEM:CONSOLE")
elseif cfg.kind ~= "WindowedApp" then -- already set by above map
table.insert(flags, "/SUBSYSTEM:NATIVE") -- fallback
end
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just to confirm, cfg.kind == "WindowedApp" is set by the above mapFlags call?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, there is just above (line 290)

		kind = {
			SharedLib = "/DLL",
			WindowedApp = "/SUBSYSTEM:WINDOWS"
		},

@samsinsane samsinsane merged commit 5aa8ff5 into premake:master Apr 13, 2023
@Jarod42 Jarod42 deleted the msc_entrypoint branch April 13, 2023 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants