Skip to content

Commit

Permalink
ci: fix Linux aarch64 build
Browse files Browse the repository at this point in the history
  • Loading branch information
hans00 committed Sep 27, 2024
1 parent d6bb20f commit ae5e685
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ jobs:
rm llvm-mingw.tar.xz
MINGW_PATH=$(realpath llvm-mingw-*)
export PATH="${MINGW_PATH}/bin:$PATH"
elif [[ "$PLATFORM" == "linux" && "$ARCH" == "aarch64" ]]; then
sudo apt-get update
sudo apt-get install -y gcc-aarch64-linux-gnu g++-aarch64-linux-gnu binutils-aarch64-linux-gnu
fi
python -m venv .venv
source .venv/bin/activate
Expand Down
4 changes: 4 additions & 0 deletions cmake/aarch64-linux-gnu.clang.toolchain.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ set(CMAKE_SYSTEM_PROCESSOR aarch64)

set(CMAKE_C_COMPILER "clang")
set(CMAKE_CXX_COMPILER "clang++")
set(CMAKE_AR "aarch64-linux-gnu-ar")
set(CMAKE_RANLIB "aarch64-linux-gnu-ranlib")
set(CMAKE_STRIP "aarch64-linux-gnu-strip")
set(CMAKE_LINKER "aarch64-linux-gnu-ld")

set(CMAKE_C_FLAGS "-march=armv8-a -target aarch64-linux-gnu")
set(CMAKE_CXX_FLAGS "-march=armv8-a -target aarch64-linux-gnu")
Expand Down

0 comments on commit ae5e685

Please sign in to comment.