Skip to content

Commit

Permalink
Update arch configurations.
Browse files Browse the repository at this point in the history
  • Loading branch information
elliottslaughter committed Aug 7, 2024
1 parent 83c18cb commit 00d4178
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions travis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 00d4178

Please sign in to comment.