Skip to content

Commit

Permalink
BaseTools: Provide fat Mach-O binaries on Darwin
Browse files Browse the repository at this point in the history
Merge pull request #63 from acidanthera/vit9696-fattools-20240327
  • Loading branch information
mikebeaton authored Mar 31, 2024
2 parents 1cf3309 + 65f88d4 commit ffdc2e1
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions BaseTools/Source/C/Makefiles/header.makefile
Original file line number Diff line number Diff line change
Expand Up @@ -125,17 +125,13 @@ ifeq ($(HOST_ARCH), X64)
CPPFLAGS += "-DEFIAPI=__attribute__((ms_abi))"
endif

ifeq ($(HOST_ARCH), IA32)
#
# Snow Leopard is a 32-bit and 64-bit environment. uname -m returns i386, but gcc defaults
# to x86_64. So make sure tools match uname -m. You can manual have a 64-bit kernal on Snow Leopard
# so only do this is uname -m returns i386.
# Provide fat binaries on Darwin
#
ifeq ($(DARWIN),Darwin)
CFLAGS += -arch i386
CPPFLAGS += -arch i386
LDFLAGS += -arch i386
endif
CFLAGS += -arch x86_64 -arch arm64 -mmacosx-version-min=10.9
CPPFLAGS += -arch x86_64 -arch arm64 -mmacosx-version-min=10.9
EXTRA_LDFLAGS += -arch x86_64 -arch arm64 -mmacosx-version-min=10.9
endif

CFLAGS += -DUEFI_IMAGE_FORMAT_SUPPORT_SOURCES=0x02
Expand Down

0 comments on commit ffdc2e1

Please sign in to comment.