Skip to content

Commit 47e270b

Browse files
committed
Switch the OSX universal binary build to X86 + ARM64
This adds support for ARM64 and removes the support for i386. Support for i386 has been removed from XCode, and the building with this target fails owing to missing libraries for this architecture.
1 parent ba467ef commit 47e270b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/common

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ endif
4747
ifeq ($(filter-out OSX OSX_Universal,$(BUILD_ENV_)),)
4848
ifeq ($(BUILD_ENV_),OSX_Universal)
4949
# MacOS Fat Binaries
50-
CP_CXXFLAGS += -force_cpusubtype_ALL -arch i386 -arch x86_64
51-
CP_CFLAGS += -force_cpusubtype_ALL -arch i386 -arch x86_64
52-
LINKFLAGS += -force_cpusubtype_ALL -arch i386 -arch x86_64
50+
CP_CXXFLAGS += -force_cpusubtype_ALL -arch arm64 -arch x86_64
51+
CP_CFLAGS += -force_cpusubtype_ALL -arch arm64 -arch x86_64
52+
LINKFLAGS += -force_cpusubtype_ALL -arch arm64 -arch x86_64
5353
endif
5454
LINKLIB = /usr/bin/libtool -static -o $@ $^
5555
LINKBIN = $(CXX) $(LINKFLAGS) -o $@ $^ $(LIBS)

0 commit comments

Comments
 (0)