crosscompile to amd64 when building on darwin/arm64
This commit is contained in:
parent
d2283a645c
commit
1bcbf53e63
13
c/Makefile
13
c/Makefile
|
@ -22,6 +22,19 @@
|
|||
#
|
||||
|
||||
|
||||
ifeq ($(OS),Windows_NT) # is Windows_NT on XP, 2000, 7, Vista, 10...
|
||||
detected_OS := Windows
|
||||
else
|
||||
detected_OS := $(strip $(shell uname))
|
||||
endif
|
||||
|
||||
ifeq ($(detected_OS),Darwin)
|
||||
ifeq ("$(shell sysctl -nq hw.optional.arm64)","1")
|
||||
# Building on M1 is still not supported, so in the meantime we crosscompile to amd64
|
||||
CFLAGS += -target x86_64-apple-macos10.12
|
||||
endif
|
||||
endif
|
||||
|
||||
# ---- Configuration options ----
|
||||
|
||||
# External/implicit variables:
|
||||
|
|
Loading…
Reference in New Issue