Force makefile to x86 on Apple ARM cpu (dmd does not support ARM)

This commit is contained in:
Johan Engelen 2022-10-22 15:53:17 +02:00 committed by The Dlang Bot
parent 51c85d9476
commit 68ca0b8d6e

View file

@ -74,6 +74,11 @@ endif
ifeq (solaris,$(OS))
CFLAGS+=-D_REENTRANT # for thread-safe errno
endif
ifeq (osx,$(OS))
ifeq (64,$(MODEL))
CFLAGS+=--target=x86_64-darwin-apple # ARM cpu is not supported by dmd
endif
endif
# Set DFLAGS
UDFLAGS:=-conf= -Isrc -Iimport -w -de -preview=dip1000 -preview=fieldwise $(MODEL_FLAG) $(PIC) $(OPTIONAL_COVERAGE) -preview=dtorfields