diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-12-20 14:09:01 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-12-20 17:56:55 +0100 |
| commit | c336f86b9670c515230767dab9dc56128acf03db (patch) | |
| tree | 4fa90ff594a68d2fb6145a7992657496f9d1cdee /wscript | |
| parent | c333199bba3de3955af2c5f2debaa5c4bf9faa43 (diff) | |
std::shared_ptr
Diffstat (limited to 'wscript')
| -rw-r--r-- | wscript | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -40,15 +40,12 @@ def options(opt): opt.add_option('--enable-debug', action='store_true', default=False, help='build with debugging information and without optimisation') opt.add_option('--static', action='store_true', default=False, help='build statically') opt.add_option('--disable-tests', action='store_true', default=False, help='disable building of tests') - opt.add_option('--force-cpp11', action='store_true', default=False, help='force use of C++11') def configure(conf): conf.load('compiler_cxx') if conf.options.enable_debug: conf.env.append_value('CXXFLAGS', '-g') - conf.env.append_value('CXXFLAGS', ['-Wall', '-Wextra', '-O2', '-Wno-deprecated-declarations']) - if conf.options.force_cpp11: - conf.env.append_value('CXXFLAGS', ['-std=c++11', '-DBOOST_NO_CXX11_SCOPED_ENUMS']) + conf.env.append_value('CXXFLAGS', ['-Wall', '-Wextra', '-O2', '-Wno-deprecated-declarations', '-std=c++11', '-DBOOST_NO_CXX11_SCOPED_ENUMS']) conf.env.TARGET_WINDOWS = conf.options.target_windows conf.env.STATIC = conf.options.static |
