Fix compilation errors in C++11 mode under Cygwin
This commit is contained in:
parent
1f1f14b523
commit
e5b5d591b0
1 changed files with 5 additions and 1 deletions
|
|
@ -247,7 +247,11 @@ defaults.warningFlags = '-Wall'
|
|||
|
||||
if 'gcc' in env.subst('$CC'):
|
||||
defaults.optimizeCcFlags += ' -Wno-inline'
|
||||
defaults.cxxFlags = '-std=c++11'
|
||||
if env['OS'] == 'Cygwin':
|
||||
# See http://stackoverflow.com/questions/18784112
|
||||
defaults.cxxFlags = '-std=gnu++11'
|
||||
else:
|
||||
defaults.cxxFlags = '-std=c++11'
|
||||
|
||||
elif env['CC'] == 'cl': # Visual Studio
|
||||
defaults.cxxFlags = ['/EHsc']
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue