C++ standard configuration in build system
Currently our wscript
has a configuration option --cxx-standard
with a default value of -std=c++11.
In trying to configure C++17 today, I found that this unexpectedly did not work:
$ CXXFLAGS="-std=c++17" ./waf configure ...
$ ./waf build
because the default value forces -std=c++17
to be overridden by -std=c++11
.
This does work:
$ ./waf configure --cxx-standard=-std=c++17 ...
I believe we are past time that we should configure -std=c++11
by default, so options include to specify something else, or to leave the default blank, or to remove this Waf option. Any opinions?