For Darwin build fat binaries when extension=d_fat

This gives a convenient and logical approach to still build fat
binaries. Only ppc is left out in the cold.
This commit is contained in:
katjav 2019-12-15 21:30:00 +01:00
parent 69e2002ac8
commit 65e9fc78d7

View file

@ -559,7 +559,11 @@ ifeq ($(system), Darwin)
ifneq ($(filter %g++, $(CXX)),)
cxx.flags := -fcheck-new
endif
arch := $(target.arch)
ifeq ($(extension), d_fat)
arch := i386 x86_64
else
arch := $(target.arch)
endif
ifneq ($(filter -mmacosx-version-min=%, $(cflags)),)
version.flag := $(filter -mmacosx-version-min=%, $(cflags))
else