Skip to content

Commit

Permalink
Enable cross-compilation for arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
gab1one committed Oct 10, 2022
1 parent 7ef5bf3 commit eea32bc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lz4/cppbuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ case $PLATFORM in
PREFIX=$INSTALL_PATH make install
;;
macosx-arm64)
export MOREFLAGS="--target=arm64-apple-darwin21.6.0"
export CC="clang"
export CXX="clang++"
make -j $MAKEJ
PREFIX=$INSTALL_PATH make install
# fix library with correct rpath
Expand Down

0 comments on commit eea32bc

Please sign in to comment.