Move internal -std when compiler quering to the front to allow overwriting it #4726
Labels
bug
Feature: Configuration
An issue related to configuring the extension or IntelliSense
fixed
Check the Milestone for the release in which the fix is or will be available.
Language Service
quick fix
Milestone
It would be really nice if the generated
-std
argument was prepended instead of appended to the user-provided arguments. I have a codebase that requires__GNUC__
to be set and__STRICT_ANSI__
to be unset in order for the correct typedefs to exist. Because this extension forcesgcc
to report its definitions for an ANSI standard, I am unable to get that combination of definitions (and there also doesn't seem to be any way for me to manually undef__STRICT_ANSI__
).The only workaround I've found is to pass bogus arguments to the compiler so that it errors out and doesn't report any definitions at all. Then, I can set the ones I need manually.
Originally posted by @tchebb in #2782 (comment)
The text was updated successfully, but these errors were encountered: