Skip to content

Commit

Permalink
fix cross compile from darwin arm64 to x86_64 (#3716)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuzeitou committed Jul 11, 2024
1 parent 478e5ab commit 4ab86b8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build/platform-darwin.mk
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,12 @@ endif
ifeq ($(ASM_ARCH), x86)
ASMFLAGS += -DPREFIX
ifeq ($(ARCH), x86_64)
CFLAGS += -arch x86_64
LDFLAGS += -arch x86_64
ASMFLAGS += -f macho64
else
CFLAGS += -arch i386
LDFLAGS += -arch i386
ASMFLAGS += -f macho
LDFLAGS += -read_only_relocs suppress
endif
Expand Down

0 comments on commit 4ab86b8

Please sign in to comment.