Skip to content

Commit

Permalink
Merge pull request #19 from TimeExceed/taoda/gnu03
Browse files Browse the repository at this point in the history
fix --std=gnu++03
  • Loading branch information
qiyuewuyi authored Sep 5, 2018
2 parents 00003f0 + 3b7596a commit 87a1fd3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,8 @@ def detect_compiler():

compiler, version = detect_compiler()
if compiler == 'g++':
flags['CXXFLAGS'].append('--std=gnu++03')
if version >= [4, 3, 0]:
flags['CXXFLAGS'].append('--std=gnu++03')
if version >= [4, 9, 0]:
flags['CCFLAGS'].extend(['-fsanitize=address', '-fvar-tracking-assignments'])
flags['LINKFLAGS'].extend(['-fsanitize=address'])
Expand Down

0 comments on commit 87a1fd3

Please sign in to comment.