From 00d4178c66b21b5f918e6894370463812fc10301 Mon Sep 17 00:00:00 2001 From: Elliott Slaughter Date: Wed, 7 Aug 2024 14:37:05 -0700 Subject: [PATCH] Update arch configurations. --- travis.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/travis.sh b/travis.sh index 97bd6c71..6b163026 100755 --- a/travis.sh +++ b/travis.sh @@ -28,12 +28,12 @@ if [[ -n $DOCKER_DISTRO ]]; then exit 0 fi +arch=$(uname -m | sed -e s/arm64/aarch64/) if [[ $(uname) = Linux ]]; then echo "Use Docker for testing build on Linux" exit 1 elif [[ $(uname) = Darwin ]]; then - arch=$(uname -m) if [[ $LLVM_VERSION = 18 ]]; then curl -L -O https://github.com/terralang/llvm-build/releases/download/llvm-18.1.7/clang+llvm-18.1.7-${arch}-apple-darwin.tar.xz tar xf clang+llvm-18.1.7-${arch}-apple-darwin.tar.xz @@ -96,13 +96,13 @@ elif [[ $(uname) = Darwin ]]; then elif [[ $(uname) = MINGW* ]]; then if [[ $LLVM_VERSION = 14 ]]; then - curl -L -O https://github.com/terralang/llvm-build/releases/download/llvm-14.0.0/clang+llvm-14.0.0-x86_64-windows-msvc17.7z - 7z x -y clang+llvm-14.0.0-x86_64-windows-msvc17.7z - export CMAKE_PREFIX_PATH=$PWD/clang+llvm-14.0.0-x86_64-windows-msvc17 + curl -L -O https://github.com/terralang/llvm-build/releases/download/llvm-14.0.0/clang+llvm-14.0.0-${arch}-windows-msvc17.7z + 7z x -y clang+llvm-14.0.0-${arch}-windows-msvc17.7z + export CMAKE_PREFIX_PATH=$PWD/clang+llvm-14.0.0-${arch}-windows-msvc17 elif [[ $LLVM_VERSION = 11 ]]; then - curl -L -O https://github.com/terralang/llvm-build/releases/download/llvm-11.1.0/clang+llvm-11.1.0-x86_64-windows-msvc17.7z - 7z x -y clang+llvm-11.1.0-x86_64-windows-msvc17.7z - export CMAKE_PREFIX_PATH=$PWD/clang+llvm-11.1.0-x86_64-windows-msvc17 + curl -L -O https://github.com/terralang/llvm-build/releases/download/llvm-11.1.0/clang+llvm-11.1.0-${arch}-windows-msvc17.7z + 7z x -y clang+llvm-11.1.0-${arch}-windows-msvc17.7z + export CMAKE_PREFIX_PATH=$PWD/clang+llvm-11.1.0-${arch}-windows-msvc17 fi if [[ $USE_CUDA -eq 1 ]]; then