Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Travis-CI: change the value of $Config{cc} to clang instead of using …
…PERL_MM_OPT

`PERL_MM_OPT` does not work with Makefile.PLs in subdirectories. Running

    perl Makefile.PL CC=clang; find -name Makefile -exec grep -H '^CC =' {} \;

shows that `CC = clang` in the toplevel Makefile, but `CC = cc`
elsewhere.
  • Loading branch information
zmughal committed Mar 19, 2015
1 parent 8690d82 commit 6ca153d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .travis.yml
Expand Up @@ -35,7 +35,8 @@ before_install:
- sudo apt-get update
- sudo apt-get install build-essential libx11-dev pgplot5 libplplot-dev libgd2-xpm-dev libhdf4-alt-dev libproj-dev libvpx-dev libxpm-dev proj-bin libcfitsio3-dev libreadline-dev
- if [ "$DISABLE_FORTRAN" != 1 ]; then sudo apt-get install gfortran; fi # set DISABLE_FOTRAN = 1 to not install gfortran
- if [ "$CC" == "clang" ]; then export PERL_MM_OPT='"CC=clang"'; fi # clang is already installed in Travis-CI environment. Just add to EU::MM option CC
# clang is already installed in Travis-CI environment. Using PERL_MM_OPT does not work with subdirectory Makefile.PLs so we override Config.pm
- if [ "$CC" == "clang" ]; then echo 'package force_clang; use ExtUtils::MakeMaker::Config; $Config{cc} = "clang"; 1' > force_clang.pm; export PERL5OPT='-Mforce_clang'; fi
- sudo apt-get install libxi-dev libxmu-dev freeglut3-dev libgsl0-dev libnetpbm10-dev # for OpenGL
- export PGPLOT_DEV=/NULL
- perl -pi -e 's|WITH_BADVAL => 1|WITH_BADVAL => 0| if defined $ENV{PDL_WITH_BADVAL} && $ENV{PDL_WITH_BADVAL} == 0' perldl.conf # disable bad value support
Expand Down

0 comments on commit 6ca153d

Please sign in to comment.