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

This commit is contained in:
Hennadii Stepanov 2021-11-26 14:19:27 +02:00
parent 111c3e06b3
commit 19f3896c9a
No known key found for this signature in database
GPG Key ID: 410108112E7EA81F

View File

@ -21,3 +21,8 @@ darwin_NM:=$(shell xcrun -f nm)
darwin_INSTALL_NAME_TOOL:=$(shell xcrun -f install_name_tool)
darwin_native_binutils=
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)