diff options
author | Matthias Hoelzl <tc@xantira.com> | 2017-12-12 11:16:23 +0100 |
---|---|---|
committer | Matthias Hoelzl <tc@xantira.com> | 2017-12-12 18:58:51 +0100 |
commit | 26a162167822cb6409414071f7857a49d2d64653 (patch) | |
tree | bd47a80402726739a13fd878c590c29ff2a7842f /modules/etc/SCsub | |
parent | 56a44ca03e05a831e5c3c965a4675d53f82e7e6e (diff) |
Change -std=gnu++11 to -stc=c++11 and don't pass flag to MSVC
Diffstat (limited to 'modules/etc/SCsub')
-rw-r--r-- | modules/etc/SCsub | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/etc/SCsub b/modules/etc/SCsub index 9c3e703f11..31d8f00ef3 100644 --- a/modules/etc/SCsub +++ b/modules/etc/SCsub @@ -34,7 +34,8 @@ env_etc.Append(CPPPATH=[thirdparty_dir]) env_etc.add_source_files(env.modules_sources, "*.cpp") # upstream uses c++11 -env_etc.Append(CCFLAGS="-std=gnu++11") +if (not env_etc.msvc): + env_etc.Append(CCFLAGS="-std=c++11") # -ffast-math seems to be incompatible with ec2comp on recent versions of # GCC and Clang if '-ffast-math' in env_etc['CCFLAGS']: |