Skip to content

Commit 19f3896

Browse files
committed
build: Fix x86_64 <-> arm64 cross-compiling for macOS
1 parent 111c3e0 commit 19f3896

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

depends/builders/darwin.mk

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,8 @@ darwin_NM:=$(shell xcrun -f nm)
2121
darwin_INSTALL_NAME_TOOL:=$(shell xcrun -f install_name_tool)
2222
darwin_native_binutils=
2323
darwin_native_toolchain=
24+
25+
x86_64_darwin_CFLAGS = -arch x86_64
26+
x86_64_darwin_CXXFLAGS = $(x86_64_darwin_CFLAGS)
27+
aarch64_darwin_CFLAGS = -arch arm64
28+
aarch64_darwin_CXXFLAGS = $(aarch64_darwin_CFLAGS)

0 commit comments

Comments
 (0)