Skip to content

Commit 267fd08

Browse files
florianGlasimonresch
authored andcommitted
feat: add linux arm LLVM build
1 parent 1042e6b commit 267fd08

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

.github/workflows/build-llvm.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
name: Build LLVM
1414
strategy:
1515
matrix:
16-
os: [ubuntu-20.04, macos-14]
16+
os: [ubuntu-24.04, ubuntu-24.04-arm, macos-14]
1717
runs-on: ${{ matrix.os }}
1818
steps:
1919
- name: checkout

build-llvm-libs.sh

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,15 @@ fi
1313
CC=clang
1414
CXX=clang++
1515

16-
TARGET_PLATFORM=X86
17-
if [ "$(uname)" == "Darwin" ]; then
18-
# On Mac we only support the new apple silicon architecture.
16+
ARCH=$(uname -m)
17+
18+
if [ "$ARCH" == "x86_64" ]; then
19+
TARGET_PLATFORM=X86
20+
elif [ "$ARCH" == "arm64" ] || [ "$ARCH" == "aarch64" ]; then
1921
TARGET_PLATFORM=AArch64
22+
else
23+
echo "Unsupported architecture: $ARCH"
24+
exit 1
2025
fi
2126

2227
cd "$SCRIPT_DIR"

0 commit comments

Comments
 (0)