build: Fix x86_64 <-> arm64 cross-compiling for macOS

pull/826/head
Hennadii Stepanov 3 years ago
parent 111c3e06b3
commit 19f3896c9a
No known key found for this signature in database
GPG Key ID: 410108112E7EA81F

@ -21,3 +21,8 @@ darwin_NM:=$(shell xcrun -f nm)
darwin_INSTALL_NAME_TOOL:=$(shell xcrun -f install_name_tool) darwin_INSTALL_NAME_TOOL:=$(shell xcrun -f install_name_tool)
darwin_native_binutils= darwin_native_binutils=
darwin_native_toolchain= darwin_native_toolchain=
x86_64_darwin_CFLAGS = -arch x86_64
x86_64_darwin_CXXFLAGS = $(x86_64_darwin_CFLAGS)
aarch64_darwin_CFLAGS = -arch arm64
aarch64_darwin_CXXFLAGS = $(aarch64_darwin_CFLAGS)

Loading…
Cancel
Save