Skip to content

Commit

Permalink
turn off special handling of rpath for windows, SCons will do the rig…
Browse files Browse the repository at this point in the history
…ht thing and just ignore it
  • Loading branch information
Nick committed Nov 18, 2018
1 parent 04a3c30 commit 0acf9ce
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,8 @@ defaults.warningFlags = '-Wall'
defaults.buildPch = False
env['pch_flags'] = []
env['openmp_flag'] = '-fopenmp' # used to generate sample build scripts
# use rpath linking
defaults.includeRPath = True

if 'gcc' in env.subst('$CC') or 'gnu-cc' in env.subst('$CC'):
defaults.optimizeCcFlags += ' -Wno-inline'
Expand All @@ -264,8 +266,6 @@ if 'gcc' in env.subst('$CC') or 'gnu-cc' in env.subst('$CC'):
defaults.cxxFlags = '-std=c++0x'
defaults.buildPch = True
env['pch_flags'] = ['-include', 'src/pch/system.h']
# use rpath linking
defaults.includeRPath = True

elif env['CC'] == 'cl': # Visual Studio
defaults.cxxFlags = ['/EHsc']
Expand All @@ -279,21 +279,18 @@ elif env['CC'] == 'cl': # Visual Studio
defaults.buildPch = True
env['pch_flags'] = ['/FIpch/system.h']
env['openmp_flag'] = '/openmp'
defaults.includeRPath = False

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

elif 'clang' in env.subst('$CC'):
defaults.ccFlags = '-fcolor-diagnostics'
defaults.cxxFlags = '-std=c++11'
defaults.buildPch = True
env['pch_flags'] = ['-include-pch', 'src/pch/system.h.gch']
defaults.includeRPath = True

else:
print("WARNING: Unrecognized C compiler '%s'" % env['CC'])
Expand Down

0 comments on commit 0acf9ce

Please sign in to comment.