From c156a4fd522ba11635d8a12f6395d242c26e2b83 Mon Sep 17 00:00:00 2001 From: Gabriel Einsdorf Date: Mon, 10 Oct 2022 15:11:17 +0200 Subject: [PATCH] Enable cross-compilation for arm64 --- lz4/cppbuild.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lz4/cppbuild.sh b/lz4/cppbuild.sh index 007743c7ecf..13ec76d39b9 100755 --- a/lz4/cppbuild.sh +++ b/lz4/cppbuild.sh @@ -26,6 +26,8 @@ case $PLATFORM in PREFIX=$INSTALL_PATH make install ;; macosx-arm64) + export CC="clang -arch arm64" + export CXX="clang++ -arch arm64" make -j $MAKEJ PREFIX=$INSTALL_PATH make install # fix library with correct rpath