diff options
author | Tristan Gingold | 2016-01-14 20:38:36 +0100 |
---|---|---|
committer | Tristan Gingold | 2016-01-14 20:38:36 +0100 |
commit | 29a6356697874cb5221e39dac717b9257f72161f (patch) | |
tree | 3c7b3dfb1c0143b2b5c0eae0b0039e31d4e5e5f4 /dist/travis-ci.sh | |
parent | fee05c69df9f6a702e4f36da17ae0fea46dcdb2d (diff) | |
download | ghdl-29a6356697874cb5221e39dac717b9257f72161f.tar.gz ghdl-29a6356697874cb5221e39dac717b9257f72161f.tar.bz2 ghdl-29a6356697874cb5221e39dac717b9257f72161f.zip |
travis: also build with llvm.
Diffstat (limited to 'dist/travis-ci.sh')
-rwxr-xr-x | dist/travis-ci.sh | 31 |
1 files changed, 27 insertions, 4 deletions
diff --git a/dist/travis-ci.sh b/dist/travis-ci.sh index 87b0c46..5187e47 100755 --- a/dist/travis-ci.sh +++ b/dist/travis-ci.sh @@ -4,12 +4,35 @@ # Stop in case of error set -e -# Build -./configure +CDIR=$PWD + +# Build mcode64 +mkdir build-mcode64 +mkdir install-mcode64 +cd build-mcode64 +../configure --prefix=$CDIR/install-mcode64 make +make install +cd .. -# Test -export GHDL=$PWD/ghdl_mcode +# Test mcode64 +export GHDL=$CDIR/install-mcode64/bin/ghdl cd testsuite gnatmake get_entities ./testsuite.sh +cd .. + +# build for llvm +mkdir build-llvm +mkdir install-llvm +cd build-llvm +../configure --prefix=$CDIR/install-llvm --with-llvm-config=llvm-config-3.5 +make +make install +cd .. + +# Test llvm +export GHDL=$CDIR/install-llvm/bin/ghdl +cd testsuite +./testsuite.sh +cd .. |