From 0eda99913edaa274de6d2040fd08cb0e9bfde339 Mon Sep 17 00:00:00 2001 From: Simon Kallweit Date: Fri, 27 Sep 2024 10:06:29 +0200 Subject: [PATCH] export CMAKE_SYSTEM_PROCESSOR for cross compilation builds --- .github/workflows/release.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7cbb04f836..9febd1f637 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -71,11 +71,13 @@ jobs: export CC=aarch64-linux-gnu-gcc export CXX=aarch64-linux-gnu-g++ fi + CMAKE_SYSTEM_PROCESSOR="${{matrix.platform}}" CMAKE_OSX_ARCHITECTURES="${{matrix.platform}}" CMAKE_OSX_ARCHITECTURES=${CMAKE_OSX_ARCHITECTURES//aarch64/arm64} echo "CC=$CC" >> "$GITHUB_ENV" echo "CXX=$CXX" >> "$GITHUB_ENV" + echo "CMAKE_SYSTEM_PROCESSOR=$CMAKE_SYSTEM_PROCESSOR" >> "$GITHUB_ENV" echo "CMAKE_OSX_ARCHITECTURES=$CMAKE_OSX_ARCHITECTURES" >> "$GITHUB_ENV" - name: Build Slang