From 7a6307062f6d274da2049cba1e4b800afb6fa417 Mon Sep 17 00:00:00 2001 From: Rickard Date: Wed, 7 Feb 2024 18:23:26 +0100 Subject: [PATCH] Fix cross compilation on linux --- .github/workflows/python-package.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 265128637..833878819 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -60,9 +60,9 @@ jobs: build_arch=${{ matrix.arch }} if [ ${build_os:0:6} == ubuntu -a ${build_arch} == aarch64 ]; then # Allow cross-compile om aarch64 - sudo apt-get install -y gcc-aarch64-linux-gnu binutils-aarch64-linux-gnu - fi - if [ ${build_os:0:5} == macos -a ${build_arch} == aarch64 ]; then + sudo apt-get install -y gcc-aarch64-linux-gnu binutils-aarch64-linux-gnu g++-aarch64-linux-gnu + cmake -DCMAKE_C_COMPILER=aarch64-linux-gnu-gcc -DCMAKE_CXX_COMPILER=aarch64-linux-gnu-g++ -DCOMPUTE_BACKEND=cpu . + elif [ ${build_os:0:5} == macos -a ${build_arch} == aarch64 ]; then cmake -DCMAKE_OSX_ARCHITECTURES=arm64 -DCOMPUTE_BACKEND=cpu . else cmake -DCOMPUTE_BACKEND=cpu .