Skip to content

Commit 4559d99

Browse files
authored
Merge pull request gridcoin-community#2560 from barton2526/cross
build: Fix x86_64 <-> arm64 cross-compiling for macOS
2 parents 85699af + 4d82fa3 commit 4559d99

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

depends/builders/darwin.mk

+5
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,8 @@ darwin_OTOOL:=$(shell xcrun -f otool)
2020
darwin_NM:=$(shell xcrun -f nm)
2121
darwin_INSTALL_NAME_TOOL:=$(shell xcrun -f install_name_tool)
2222
darwin_native_toolchain=
23+
24+
x86_64_darwin_CFLAGS += -arch x86_64
25+
x86_64_darwin_CXXFLAGS += -arch x86_64
26+
aarch64_darwin_CFLAGS += -arch arm64
27+
aarch64_darwin_CXXFLAGS += -arch arm64

0 commit comments

Comments
 (0)