Skip to content

Commit

Permalink
Fix macOS Universal build
Browse files Browse the repository at this point in the history
  • Loading branch information
krazijames committed Feb 12, 2024
1 parent 3592f05 commit 65d57d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build-macos-universal-static_lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ cd $(dirname $0)
ARCH=x86_64
BUILD_DIR=$BUILD_DIR-$ARCH
OUTPUT_DIR=$OUTPUT_DIR-$ARCH
CMAKE_OPTIONS="-D CMAKE_OSX_ARCHITECTURES=$ARCH $CMAKE_OPTIONS"
CMAKE_OPTIONS="-D CMAKE_OSX_ARCHITECTURES=$ARCH -D CMAKE_SYSTEM_NAME=Darwin -D CMAKE_SYSTEM_PROCESSOR=$ARCH $CMAKE_OPTIONS"
SKIP_TESTS=true
source ./build-static_lib.sh
)
Expand Down Expand Up @@ -55,7 +55,7 @@ cp -r $OUTPUT_DIR-arm64/include $OUTPUT_DIR
(
ARCH=x86_64
BUILD_DIR=$BUILD_DIR-$ARCH
TESTS_CMAKE_OPTIONS="-D CMAKE_OSX_ARCHITECTURES=$ARCH $TESTS_CMAKE_OPTIONS"
TESTS_CMAKE_OPTIONS="-D CMAKE_OSX_ARCHITECTURES=$ARCH -D CMAKE_SYSTEM_NAME=Darwin -D CMAKE_SYSTEM_PROCESSOR=$ARCH $TESTS_CMAKE_OPTIONS"
SKIP_BUILD=true
source ./build-static_lib.sh
)

0 comments on commit 65d57d3

Please sign in to comment.