The conda GCC compilers aren't called gcc, they're called gnu-cc

Check for gnu-cc in the CC variable to catch this case
This commit is contained in:
Bryan W. Weber 2017-11-27 16:44:06 -05:00
parent 7054a7bb3d
commit 07409dea59
No known key found for this signature in database
GPG key ID: 3A93E209C87E1FE7

View file

@ -257,7 +257,7 @@ defaults.buildPch = False
env['pch_flags'] = []
env['openmp_flag'] = '-fopenmp' # used to generate sample build scripts
if 'gcc' in env.subst('$CC'):
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