Skip to content

Commit

Permalink
Use llvm.sh script in any case that is not caught
Browse files Browse the repository at this point in the history
  • Loading branch information
wouter-heerwegh committed Oct 29, 2024
1 parent 8ac818a commit 3926683
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
5 changes: 4 additions & 1 deletion AirSim/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,12 @@ elif [ "$VERSION" -lt "22" ]; then
elif [ "$VERSION" -lt "24" ]; then
export CC="clang-12"
export CXX="clang++-12"
else
elif [ "$VERSION" -lt "26" ]; then
export CC="clang-16"
export CXX="clang++-16"
else
export CC="clang-12"
export CXX="clang++-12"
fi

#install EIGEN library
Expand Down
7 changes: 6 additions & 1 deletion AirSim/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,13 @@ elif [ "$VERSION" -lt "22" ]; then
sudo apt-get install -y clang-8 libc++-8-dev libc++abi-8-dev
elif [ "$VERSION" -lt "24" ]; then
sudo apt-get install -y clang-12 clang++-12 libc++-12-dev libc++abi-12-dev
else
elif [ "$VERSION" -lt "26" ]; then
sudo apt-get install -y clang-16 clang++-16 libc++-16-dev libc++abi-16-dev
else
# Installing clang 12 for now in all other cases
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh 12
fi

#install additional tools
Expand Down

0 comments on commit 3926683

Please sign in to comment.