Skip to content

Move internal -std when compiler quering to the front to allow overwriting it #4726

@sean-mcmanus

Description

@sean-mcmanus

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 forces gcc 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)

Metadata

Metadata

Assignees

Labels

Feature: ConfigurationAn issue related to configuring the extension or IntelliSenseLanguage ServicebugfixedCheck the Milestone for the release in which the fix is or will be available.quick fix

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions