Skip to content

Commit

Permalink
Replace c++0x by c++11
Browse files Browse the repository at this point in the history
  • Loading branch information
ischoegl authored and speth committed Oct 17, 2021
1 parent 05abefd commit a84b6e6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -287,9 +287,9 @@ if 'gcc' in env.subst('$CC') or 'gnu-cc' in env.subst('$CC'):
defaults.optimizeCcFlags += ' -Wno-inline'
if env['OS'] == 'Cygwin':
# See http://stackoverflow.com/questions/18784112
defaults.cxxFlags = '-std=gnu++0x'
defaults.cxxFlags = '-std=gnu++11'
else:
defaults.cxxFlags = '-std=c++0x'
defaults.cxxFlags = '-std=c++11'
defaults.buildPch = True
env['pch_flags'] = ['-include', 'src/pch/system.h']

Expand All @@ -307,7 +307,7 @@ elif env['CC'] == 'cl': # Visual Studio
env['openmp_flag'] = ['/openmp']

elif 'icc' in env.subst('$CC'):
defaults.cxxFlags = '-std=c++0x'
defaults.cxxFlags = '-std=c++11'
defaults.ccFlags = '-vec-report0 -diag-disable 1478'
defaults.warningFlags = '-Wcheck'
env['openmp_flag'] = ['-openmp']
Expand Down

0 comments on commit a84b6e6

Please sign in to comment.