Skip to content

Commit 7db79d6

Browse files
author
Joe Hamman
authored
Merge pull request #894 from minrk/patch-1
cffi headers: respect $CC if defined
2 parents 2e92472 + 81a76d2 commit 7db79d6

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.travis.yml

+10
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,16 @@ matrix:
8989
- compiler: gcc
9090
os: osx
9191
env: TESTID=classic BREW_INSTALLS=valgrind
92+
# CESM Driver, started failing when travis upgraded to gcc5
93+
- compiler: gcc
94+
os: linux
95+
env: TESTID='cesm'
96+
addons:
97+
apt_packages:
98+
- libnetcdf-dev
99+
- netcdf-bin
100+
- netcdf-doc
101+
- gfortran
92102
before_install:
93103
- source ci/vic_install_utils
94104
- source ci/${TESTID}.travis

vic/drivers/python/setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def make_cffi_headers():
124124
'zwtvmoist_zwt',
125125
'zwtvmoist_moist']
126126

127-
args = ['gcc', '-std=c99', '-E',
127+
args = [os.environ.get('CC') or 'gcc', '-std=c99', '-E',
128128
'-P', os.path.join(vic_root_abs_path, 'vic', 'drivers',
129129
'python', 'src', 'globals.c'),
130130
'-I%s' % os.path.join(vic_root_abs_path, 'vic', 'drivers',

0 commit comments

Comments
 (0)