diff options
author | eine <eine@users.noreply.github.com> | 2021-02-02 14:02:41 +0100 |
---|---|---|
committer | eine <6628437+eine@users.noreply.github.com> | 2021-02-02 16:06:31 +0100 |
commit | c1ff804dd4044bfd83493a11996b9635ebf4a9a0 (patch) | |
tree | 2c967cda56c08f129e3d18dbf6ec7b1b1b6d2f9d /scripts | |
parent | 76b03643b0123dc077acaa967a9c383deeb923d8 (diff) | |
download | ghdl-c1ff804dd4044bfd83493a11996b9635ebf4a9a0.tar.gz ghdl-c1ff804dd4044bfd83493a11996b9635ebf4a9a0.tar.bz2 ghdl-c1ff804dd4044bfd83493a11996b9635ebf4a9a0.zip |
ci: cleanup macos build
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/ci-run.sh | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/scripts/ci-run.sh b/scripts/ci-run.sh index d6bbbd8cd..2c53351a8 100755 --- a/scripts/ci-run.sh +++ b/scripts/ci-run.sh @@ -294,11 +294,6 @@ build () { CXX="clang++-$llvmver" CONFIG_OPTS+=" --with-llvm-config=llvm-config-$llvmver CXX=$CXX" ;; - brew-llvm) - llvmprefix=`brew --prefix llvm` - CXX="clang++" - CONFIG_OPTS+=" --with-llvm-config=$llvmprefix/bin/llvm-config CXX=$CXX" - ;; *) printf "$ANSI_RED[GHDL - build] Unknown build $BACK $ANSI_NOCOLOR\n" exit 1;; @@ -401,7 +396,8 @@ ci_run () { RUN="docker run --rm -t -e CI -e TRAVIS -v `pwd`:/work -w /work" if [ "x$IS_MACOS" = "xtrue" ]; then - export CPATH="$CPATH:`xcrun --show-sdk-path`/usr/include" + export CPATH="$CPATH:$(xcrun --show-sdk-path)/usr/include" + export PATH="$PATH:$(brew --prefix llvm)/bin" CC=clang bash -c "${scriptdir}/ci-run.sh $BUILD_CMD_OPTS build" else # Assume linux @@ -429,8 +425,8 @@ ci_run () { if [ "x$IS_MACOS" = "xtrue" ]; then CC=clang \ - prefix="`pwd`/install-$BACK/usr/local" \ - ./testsuite/testsuite.sh sanity gna vests vpi + prefix="$(pwd)/install-$(echo "$TASK" | cut -d+ -f2)/usr/local" \ + ./testsuite/testsuite.sh sanity gna vests vpi synth else # Build ghdl/ghdl:$GHDL_IMAGE_TAG image build_img_ghdl |