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 c156a4f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lz4/cppbuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c156a4f

Please sign in to comment.