Skip to content
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

Open
Kryptryx opened this issue Sep 19, 2020 · 3 comments
Open

[REQUEST] Save compiler options per compiler #2214

Kryptryx opened this issue Sep 19, 2020 · 3 comments
Labels
request Request for something

Comments

@Kryptryx
Copy link

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.

@rmccampbell
Copy link

rmccampbell commented May 8, 2024

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.

@partouf
Copy link
Contributor

partouf commented May 8, 2024

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.

@rmccampbell
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
request Request for something
Projects
None yet
Development

No branches or pull requests

3 participants