Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
galeselee authored and taichi-gardener committed Dec 6, 2022
1 parent 2b46c3c commit 52dd691
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/scripts/unix-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,12 @@ set -ex
[[ "$IN_DOCKER" == "true" ]] && cd taichi

if [[ $OSTYPE == "linux-"* ]]; then
if [ -z "$AMDGPU_TEST"]; then
if ["$AMDGPU_TEST"]; then
sudo ln -s /usr/bin/clang++-10 /usr/bin/clang++
sudo ln -s /usr/bin/clang-10 /usr/bin/clang
sudo ln -s /usr/bin/ld.lld-10 /usr/bin/ld.lld
export LLVM_DIR="/taichi-llvm-15.0.0-linux"
else
if [ ! -d ~/taichi-llvm-15 ]; then
pushd ~
if [ -f /etc/centos-release ] ; then
Expand All @@ -20,11 +25,6 @@ if [[ $OSTYPE == "linux-"* ]]; then
popd
fi
export LLVM_DIR="$HOME/taichi-llvm-15"
else
sudo ln -s /usr/bin/clang++-10 /usr/bin/clang++
sudo ln -s /usr/bin/clang-10 /usr/bin/clang
sudo ln -s /usr/bin/ld.lld-10 /usr/bin/ld.lld
export LLVM_DIR="/taichi-llvm-15.0.0-linux"
fi


Expand Down

0 comments on commit 52dd691

Please sign in to comment.