Skip to content

Commit

Permalink
Fix MacOS 15 issue with M3
Browse files Browse the repository at this point in the history
  • Loading branch information
danicuki authored Dec 18, 2024
1 parent 1f933bc commit 9122ba0
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,18 @@ build() {
JOBS="$(nproc)"
fi
./get-msquic.sh "$MSQUIC_VERSION"
cmake -B c_build -G "${GENERATOR}"

CMAKE_EXTRA_ARGS="-DCMAKE_OSX_ARCHITECTURES=arm64"
MIX_TARGET="${MIX_TARGET:-arm64-apple-darwin}"

# Check if a MIX_TARGET is set.
case "$MIX_TARGET" in
"x86_64-apple-darwin")
CMAKE_EXTRA_ARGS="-DCMAKE_OSX_ARCHITECTURES=x86_64"
;;
esac

cmake -B c_build -G "${GENERATOR}" ${CMAKE_EXTRA_ARGS}
$MakeCmd -C c_build -j "$JOBS"
$MakeCmd -C c_build install
## MacOS
Expand Down

0 comments on commit 9122ba0

Please sign in to comment.