Skip to content

Return last -std argument from parseCppStd#14

Open
colincross wants to merge 1 commit into
elektronikworkshop:masterfrom
colincross:patch-1
Open

Return last -std argument from parseCppStd#14
colincross wants to merge 1 commit into
elektronikworkshop:masterfrom
colincross:patch-1

Conversation

@colincross
Copy link
Copy Markdown

gcc uses the last -std argument found on the command line:

$ g++ -std=gnu++11 -std=gnu++17 -dM -E -x c++ - < /dev/null | grep __cplusplus
#define __cplusplus 201703L

Modify parseCppStd to continue searching after finding the first -std argument.

gcc uses the last -std argument found on the command line:
$ g++ -std=gnu++11 -std=gnu++17 -dM -E -x c++ - < /dev/null | grep __cplusplus
#define __cplusplus 201703L

Modify parseCppStd to continue searching after finding the first -std argument.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant