ci: build the Linux command with LLVM 21, since the C build passes a flag Clang 15 lacks
This commit is contained in:
1 parent
534c614748
commit
7abd8d377f
2 files changed
+14
-6
No files matched your search
@@ -71,12 +71,16 @@ jobs:
|
||||
|
||||
- name: Put LLVM on PATH
|
||||
run: |
|
||||
# Mbed TLS takes -mllvm --disable-select-optimize, LLVM 15 and newer.
|
||||
# The C build passes --no-default-config, which Clang 16 and newer
|
||||
# take; Linux uses the LLVM 21 the boot program builds with.
|
||||
case "$RUNNER_OS" in
|
||||
Windows) echo 'C:\Program Files\LLVM\bin' >> "$GITHUB_PATH" ;;
|
||||
Linux)
|
||||
[[ -d /usr/lib/llvm-15/bin ]] || { sudo apt-get update -q && sudo apt-get install -y -q clang-15; }
|
||||
echo /usr/lib/llvm-15/bin >> "$GITHUB_PATH"
|
||||
curl -fsSL https://apt.llvm.org/llvm-snapshot.gpg.key | sudo tee /etc/apt/trusted.gpg.d/apt.llvm.org.asc >/dev/null
|
||||
echo "deb http://apt.llvm.org/noble/ llvm-toolchain-noble-21 main" | sudo tee /etc/apt/sources.list.d/llvm-21.list
|
||||
sudo apt-get update -q
|
||||
sudo apt-get install -y -q --no-install-recommends clang-21 llvm-21
|
||||
echo /usr/lib/llvm-21/bin >> "$GITHUB_PATH"
|
||||
;;
|
||||
esac
|
||||
|
||||
|
||||
@@ -236,12 +236,16 @@ jobs:
|
||||
|
||||
- name: Put LLVM on PATH
|
||||
run: |
|
||||
# Mbed TLS takes -mllvm --disable-select-optimize, LLVM 15 and newer.
|
||||
# The C build passes --no-default-config, which Clang 16 and newer
|
||||
# take; Linux uses the LLVM 21 the boot program builds with.
|
||||
case "$RUNNER_OS" in
|
||||
Windows) echo 'C:\Program Files\LLVM\bin' >> "$GITHUB_PATH" ;;
|
||||
Linux)
|
||||
[[ -d /usr/lib/llvm-15/bin ]] || { sudo apt-get update -q && sudo apt-get install -y -q clang-15; }
|
||||
echo /usr/lib/llvm-15/bin >> "$GITHUB_PATH"
|
||||
curl -fsSL https://apt.llvm.org/llvm-snapshot.gpg.key | sudo tee /etc/apt/trusted.gpg.d/apt.llvm.org.asc >/dev/null
|
||||
echo "deb http://apt.llvm.org/noble/ llvm-toolchain-noble-21 main" | sudo tee /etc/apt/sources.list.d/llvm-21.list
|
||||
sudo apt-get update -q
|
||||
sudo apt-get install -y -q --no-install-recommends clang-21 llvm-21
|
||||
echo /usr/lib/llvm-21/bin >> "$GITHUB_PATH"
|
||||
;;
|
||||
esac
|
||||
|
||||
|
||||
Reference in new issue
Block a user