-
-
Notifications
You must be signed in to change notification settings - Fork 620
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a new "ScanForModuleDependencies" flag. #1788
Add a new "ScanForModuleDependencies" flag. #1788
Conversation
This controls the Visual Studio "Scan Sources for Module Dependencies" option, which controls how it scans for C++20 modules. This new flag sets the option in the generated project files.
Is there a equivalent (command-line) flag for other IDEs which might use msvc as compiler? |
No. This isn't a command-line flag for the compiler. This controls how the Visual Studio IDE scans for module dependencies and how it determines which files to compile. This is related to using the But say your main.cpp file had
By enabling the Other IDEs which use Visual Studio as a compiler would probably have their own way of determining which files to build. They might scan .cpp files on their own, or maybe have a setting where you list additional files to compile. The solutions given by Microsoft are:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't add new flags, please create an API instead.
Okay. It has been converted to an API call now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
What does this PR do?
This controls the Visual Studio "Scan Sources for Module Dependencies" option, which controls how it scans for C++20 modules. This new flag sets the option in the generated project files.
How does this PR change Premake's behavior?
This PR adds a new flag option that generates a new entry in the group for each configuration.
Anything else we should know?
Nope.
Did you check all the boxes?
closes #XXXX
in comment to auto-close issue when PR is merged)You can now support Premake on our OpenCollective. Your contributions help us spend more time responding to requests like these!