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] Better validation for CLI flags #2654

Open
mcandre opened this issue May 9, 2021 · 1 comment
Open

[REQUEST] Better validation for CLI flags #2654

mcandre opened this issue May 9, 2021 · 1 comment
Labels
request Request for something

Comments

@mcandre
Copy link

mcandre commented May 9, 2021

Is your feature request related to a problem? Please describe.

When I reconfigure Compiler Explorer to use a different compiler, then it silently ignores any errors relating to the build flags. For example, MSVC will continue to build unoptimized machine code when the flags feature "-O3". This is invalid syntax for MSVC. Because the problem is silently ignored, the Compiler Explorer user may continue to debug their application with the wrong impression of which settings are applied to the compiler.

Describe the solution you'd like

  • Abort the build and report an error in the compilation log, when the compiler rejects the command line flags.

Describe alternatives you've considered

  • Reset the flags each time the compiler is changed, even if the flags would be compatible between both compilers. This could get annoying though, for users who regularly test on multiple compilers.
@mcandre mcandre added the request Request for something label May 9, 2021
@partouf
Copy link
Contributor

partouf commented May 9, 2021

I'm not sure we can just throw errors when flags are ignored (it's definitely not Silently ignored, there's always a warning in the output log) - but maybe it's indeed too hidden for the user.

Related issues to this:

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

2 participants