Skip to content

Improvement help #1804

Answered by samsinsane
MattBystrin asked this question in Q&A
Jan 30, 2022 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

How to get default values ( toolset, config and etc ) that is going to be using invoking premake.

Default values are baked into the wks, prj and cfg objects during the generation process. In the case of the module that you've linked, the export-compile-commands doesn't specify a default toolset, so it will be nil unless the user explicitly sets it, runs on a Darwin-based OS (Premake sets this globally) or you default it at the point you require it (as is done in the module currently).

What if gcc is not system default?

Then it won't work as expected. Users on systems with another compiler as the default should specify the toolset. I believe there's a Premake option for this already, -…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@MattBystrin
Comment options

Answer selected by MattBystrin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants