From 7951bc1bcf6ac4b85cd943d730de71f8f6dfb9bd Mon Sep 17 00:00:00 2001 From: vit9696 Date: Sat, 27 Aug 2022 18:57:38 +0300 Subject: [PATCH] Build tools as FAT binaries (arm64/x86_64) on macOS references #228 --- unixbuild.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unixbuild.sh b/unixbuild.sh index f86af15..83c91f8 100755 --- a/unixbuild.sh +++ b/unixbuild.sh @@ -88,7 +88,7 @@ build_tool() { fi else if [ "$UPLATFORM" = "mac" ]; then - cmake -G "Unix Makefiles" -DCMAKE_CXX_FLAGS="-stdlib=libc++ -flto -Os -mmacosx-version-min=10.7" -DCMAKE_C_FLAGS="-flto -Os -mmacosx-version-min=10.7" . || exit 1 + cmake -G "Unix Makefiles" -DCMAKE_OSX_ARCHITECTURES="arm64;x86_64" -DCMAKE_CXX_FLAGS="-stdlib=libc++ -flto -Os -mmacosx-version-min=10.7" -DCMAKE_C_FLAGS="-flto -Os -mmacosx-version-min=10.7" . || exit 1 elif [ "$UPLATFORM" = "win32" ]; then cmake -G "Unix Makefiles" -DCMAKE_CXX_FLAGS="-static -Os -std=c++11" -DCMAKE_C_FLAGS="-static -Os" . || exit 1 else