Skip to content

Commit 94718f7

Browse files
dominicletzessen
authored andcommitted
Removed hardcoded -arch x86_64 for MacOS nifs
For current macs the flag seems problematic as it overrides the default choice of building for the current architecture and hence prevents building on ARM based macs.
1 parent bf7a194 commit 94718f7

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

plugins/c_src.mk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ ifeq ($(PLATFORM),msys2)
3535
CXXFLAGS ?= -O3 -finline-functions -Wall
3636
else ifeq ($(PLATFORM),darwin)
3737
CC ?= cc
38-
CFLAGS ?= -O3 -std=c99 -arch x86_64 -Wall -Wmissing-prototypes
39-
CXXFLAGS ?= -O3 -arch x86_64 -Wall
40-
LDFLAGS ?= -arch x86_64 -flat_namespace -undefined suppress
38+
CFLAGS ?= -O3 -std=c99 -Wall -Wmissing-prototypes
39+
CXXFLAGS ?= -O3 -Wall
40+
LDFLAGS ?= -flat_namespace -undefined suppress
4141
else ifeq ($(PLATFORM),freebsd)
4242
CC ?= cc
4343
CFLAGS ?= -O3 -std=c99 -finline-functions -Wall -Wmissing-prototypes

0 commit comments

Comments
 (0)