Skip to content

Commit

Permalink
Force makefile to x86 on Apple ARM cpu (dmd does not support ARM)
Browse files Browse the repository at this point in the history
  • Loading branch information
JohanEngelen authored and dlang-bot committed Oct 22, 2022
1 parent 05d6e97 commit 3ad507b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions etc/c/zlib/osx.mak
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
CC=gcc
LD=link
CFLAGS=-I. -O -g -DHAVE_UNISTD_H -DHAVE_STDARG_H
ifeq (64,$(MODEL))
CFLAGS+=--target=x86_64-darwin-apple # ARM cpu is not supported by dmd
endif

LDFLAGS=
O=.o

Expand Down
6 changes: 6 additions & 0 deletions posix.mak
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,12 @@ else
endif
endif
endif
ifeq (osx,$(OS))
ifeq (64,$(MODEL))
CFLAGS+=--target=x86_64-darwin-apple # ARM cpu is not supported by dmd
endif
endif


# Set DFLAGS
DFLAGS=
Expand Down

0 comments on commit 3ad507b

Please sign in to comment.