Skip to content

Commit

Permalink
Merge pull request #894 from minrk/patch-1
Browse files Browse the repository at this point in the history
cffi headers: respect $CC if defined
  • Loading branch information
Joe Hamman committed Sep 27, 2019
2 parents 2e92472 + 81a76d2 commit 7db79d6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,16 @@ matrix:
- compiler: gcc
os: osx
env: TESTID=classic BREW_INSTALLS=valgrind
# CESM Driver, started failing when travis upgraded to gcc5
- compiler: gcc
os: linux
env: TESTID='cesm'
addons:
apt_packages:
- libnetcdf-dev
- netcdf-bin
- netcdf-doc
- gfortran
before_install:
- source ci/vic_install_utils
- source ci/${TESTID}.travis
Expand Down
2 changes: 1 addition & 1 deletion vic/drivers/python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def make_cffi_headers():
'zwtvmoist_zwt',
'zwtvmoist_moist']

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

0 comments on commit 7db79d6

Please sign in to comment.