-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
[REQUEST] Save compiler options per compiler #2214
Comments
This would be very helpful for comparing differences between compilers. In most cases preserving the same options from GCC/Clang to MSVC makes no sense. |
The reason that this has been an issue for this long, is that people use switching to compilers for different reasons. And they usually just Should Not switch, but instead add a new compiler. But they do so because of display real-estate reasons. I have suggested adding something to favorite a 'collection of arguments', so it's always easy to get back at the relevant arguments for a certain compiler instead of having to remember to change them. But people haven't been jumping at that idea. |
Even if some people might prefer a single saved set of options, I think it could easily be a configurable setting. I would prefer if the options were stored per-base-compiler (e.g. Clang/GCC/MSVC), though having more or less granularity could both be argued (e.g. share options between GCC/Clang on one hand, or even have separate options per architecture on the other). Maybe supporting "global"/"per-family"/"per-compiler"/"per-target" options as a dropdown in the settings would be the best option. Another feature that would largely alleviate this problem is the "Overrides" option for std version if it actually worked for MSVC, but it unfortunately doesn't: #6458. |
Save the compiler options I select per compiler, or maybe per compiler family.
In particular switching between gcc and msvc, I keep needing to change the optimization between -O2 and -O3, and the standard selection between -std:c++latest and -std=c++20.
The text was updated successfully, but these errors were encountered: