I have both options on in my Makefile, Basically, my Make file looks like this
$OPT_FLAG := -O2 -std=c++11 $CXXFLAG += $(OPT_FLAG) -std=c++14 so actual build command is sth like
g++ -m64 ... -std=c++11, -std=c++14 ... and of course $CXXFLAG is passed as argument to invoke gcc build. In this case, am I using c++14 or c++11? my gcc version is 5.4
-Oxbut still I thought it is related enough to add it__cplusplusis, and checking if it's consistent depending on the order you pass?