From 07409dea59cffa57e4dba91087e52d1201b4eb6e Mon Sep 17 00:00:00 2001 From: "Bryan W. Weber" Date: Mon, 27 Nov 2017 16:44:06 -0500 Subject: [PATCH] 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 --- SConstruct | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SConstruct b/SConstruct index 4e9b4b953..184c3ff09 100644 --- a/SConstruct +++ b/SConstruct @@ -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