Skip to content

Commit

Permalink
Only add i386 and x86_64 arch if that's the platform.
Browse files Browse the repository at this point in the history
This fixes issues building the test library on Darwin. There's no
reason to build for a platform we won't test.
  • Loading branch information
headius committed Oct 28, 2019
1 parent aab7c6b commit 8209ab6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions spec/ffi/fixtures/GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,11 @@ ifeq ($(OS), darwin)
ifneq ($(findstring $(CPU),ppc),)
ARCHFLAGS += -arch ppc
endif
ifneq ($(findstring $(CPU),i386 x86_64),)
ARCHFLAGS += -arch i386 -arch x86_64
ifneq ($(findstring $(CPU),i386),)
ARCHFLAGS += -arch i386
endif
ifneq ($(findstring $(CPU),x86_64),)
ARCHFLAGS += -arch x86_64
endif
CFLAGS += $(ARCHFLAGS) -DTARGET_RT_MAC_CFM=0
CFLAGS += -fno-common
Expand Down

0 comments on commit 8209ab6

Please sign in to comment.