Open colincross opened 1 year ago
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:
Modify parseCppStd to continue searching after finding the first -std argument.