summaryrefslogtreecommitdiff
path: root/runtests.py
diff options
context:
space:
mode:
authormattip <matti.picus@gmail.com>2018-08-10 13:25:01 -0700
committermattip <matti.picus@gmail.com>2018-08-10 13:25:01 -0700
commit43970c6935b500163cf591688764a7bdf5a284fa (patch)
tree407037ce58880600dc0be3b07ec7dc7dd4954e0b /runtests.py
parentc0b4340c698c486e459a0a2c80706c78329c64fc (diff)
downloadnumpy-43970c6935b500163cf591688764a7bdf5a284fa.tar.gz
BUG: compiler used is env['CC'], then config_vars['CC']
Diffstat (limited to 'runtests.py')
-rwxr-xr-xruntests.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/runtests.py b/runtests.py
index 388b911a1..81c7c103f 100755
--- a/runtests.py
+++ b/runtests.py
@@ -328,9 +328,10 @@ def build_project(args):
# Always use ccache, if installed
env['PATH'] = os.pathsep.join(EXTRA_PATH + env.get('PATH', '').split(os.pathsep))
cvars = distutils.sysconfig.get_config_vars()
- if 'gcc' in cvars.get('CC', ''):
+ compiler = env.get('CC') or cvars.get('CC', '')
+ if 'gcc' in compiler:
# Check that this isn't clang masquerading as gcc.
- if sys.platform != 'darwin' or 'gnu-gcc' in cvars.get('CC', ''):
+ if sys.platform != 'darwin' or 'gnu-gcc' in compiler:
# add flags used as werrors
warnings_as_errors = ' '.join([
# from tools/travis-test.sh