Files
clang-p2996/lldb/packages/Python/lldbsuite/test/macosx/universal/Makefile
Adrian Prantl d987a8cf38 Port the Darwin universal binary testcase to x86_64.
Xcode 10 doesn't ship with an i386 SDK any more. This patch ports the
testcase from an i386/x86_64 -> x86_64/x86_64h universal binary.

rdar://problem/46099343

llvm-svn: 346981
2018-11-15 19:15:03 +00:00

26 lines
491 B
Makefile

LEVEL := ../../make
EXE := testit
include $(LEVEL)/Makefile.rules
all: testit
testit: testit.x86_64h testit.x86_64
lipo -create -o testit $^
testit.x86_64h: testit.x86_64h.o
$(CC) -arch x86_64h -o testit.x86_64h $<
testit.x86_64: testit.x86_64.o
$(CC) -arch x86_64 -o testit.x86_64 $<
testit.x86_64h.o: main.c
$(CC) -g -O0 -arch x86_64h -c -o testit.x86_64h.o $<
testit.x86_64.o: main.c
$(CC) -g -O0 -arch x86_64 -c -o testit.x86_64.o $<
clean::
rm -rf $(wildcard testit* *~)