Files
clang-p2996/lldb/test/API/macosx/universal64/Makefile
Jonas Devlieghere a136148d8f [lldb] Use Haswell instead of arm64 in TestUniversal64
The architecture doesn't really matter for the test, at least not until
the dynamic loader can load these fat64 binaries. Use Hawell instead of
arm64 to support older bots that don't know about Apple Silicon triples.
2023-05-05 09:01:23 -07:00

25 lines
576 B
Makefile

EXE := fat.out
ifdef FAT64_DSYM
DSFLAGS_EXTRAS=-fat64
endif
include Makefile.rules
all: fat.out
fat.out: fat.x86_64h.out fat.x86_64.out
lipo -fat64 -create -o $@ $^
fat.x86_64.out: fat.x86_64.o
$(CC) -isysroot $(SDKROOT) -target x86_64-apple-macosx10.9 -o $@ $<
fat.x86_64h.out: fat.x86_64h.o
$(CC) -isysroot $(SDKROOT) -target x86_64h-apple-macosx10.9 -o $@ $<
fat.x86_64.o: main.c
$(CC) -isysroot $(SDKROOT) -g -O0 -target x86_64-apple-macosx10.9 -c -o $@ $<
fat.x86_64h.o: main.c
$(CC) -isysroot $(SDKROOT) -g -O0 -target x86_64h-apple-macosx10.9 -c -o $@ $<