-
Notifications
You must be signed in to change notification settings - Fork 179
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
AdditionalCompilerOptions per file "/bigobj" #108
Comments
What I'm looking for is an equivalent from CMake;
Which commonly needed for generated code. |
Unfortunately, Sharpmake doesn't really support per-file compiler options, only for some rare cases, and /bigobj is not one of those. Any reason why you prefer not to set it globally? Afaik it doesn't have any negative impact. |
No real reason I used to do it in this way. |
Correct, I usually recommend doing that in your configure method that's called on platforms using MSVC: conf.AdditionalCompilerOptions.Add("/bigobj"); Note that you usually get faster compile times when you set options in the project rather than per file, that way visual studio (but really msbuild) can group the compiler invocations (ex: |
I use to do it per file to keep track of the "too big file" if I can do something about it. [Fixed] |
How can I add a custom build option per file?
I am using AdditionalCompilerOptions for project, I would like to add "/bigobj" for a given cpp file.
The text was updated successfully, but these errors were encountered: