Skip to content

Commit 3926683

Browse files
Use llvm.sh script in any case that is not caught
1 parent 8ac818a commit 3926683

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

AirSim/build.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,12 @@ elif [ "$VERSION" -lt "22" ]; then
3838
elif [ "$VERSION" -lt "24" ]; then
3939
export CC="clang-12"
4040
export CXX="clang++-12"
41-
else
41+
elif [ "$VERSION" -lt "26" ]; then
4242
export CC="clang-16"
4343
export CXX="clang++-16"
44+
else
45+
export CC="clang-12"
46+
export CXX="clang++-12"
4447
fi
4548

4649
#install EIGEN library

AirSim/setup.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,13 @@ elif [ "$VERSION" -lt "22" ]; then
3232
sudo apt-get install -y clang-8 libc++-8-dev libc++abi-8-dev
3333
elif [ "$VERSION" -lt "24" ]; then
3434
sudo apt-get install -y clang-12 clang++-12 libc++-12-dev libc++abi-12-dev
35-
else
35+
elif [ "$VERSION" -lt "26" ]; then
3636
sudo apt-get install -y clang-16 clang++-16 libc++-16-dev libc++abi-16-dev
37+
else
38+
# Installing clang 12 for now in all other cases
39+
wget https://apt.llvm.org/llvm.sh
40+
chmod +x llvm.sh
41+
sudo ./llvm.sh 12
3742
fi
3843

3944
#install additional tools

0 commit comments

Comments
 (0)