and delete a bunch (but not all) redundant code. If you compare the remaining implementations of Platform*Simulator.cpp, there is still an obvious leftover cleanup task. Specifically, this patch - removes SDK initialization from dotest (there is equivalent but more complete code in Makefile.rules) - make Platform*Simulator inherit the generic implementation of PlatformAppleSimulator (more can be done here) - simplify the platform logic in Makefile.rules - replace the custom SDK finding logic in Platform*Simulator with XcodeSDK - adds a test for each supported simulator Differential Revision: https://reviews.llvm.org/D81980
21 lines
505 B
Makefile
21 lines
505 B
Makefile
EXE := testit
|
|
|
|
include Makefile.rules
|
|
|
|
all: testit
|
|
|
|
testit: testit.x86_64h testit.x86_64
|
|
lipo -create -o testit $^
|
|
|
|
testit.x86_64h: testit.x86_64h.o
|
|
$(CC) -isysroot $(SDKROOT) -arch x86_64h -o testit.x86_64h $<
|
|
|
|
testit.x86_64: testit.x86_64.o
|
|
$(CC) -isysroot $(SDKROOT) -arch x86_64 -o testit.x86_64 $<
|
|
|
|
testit.x86_64h.o: main.c
|
|
$(CC) -isysroot $(SDKROOT) -g -O0 -arch x86_64h -c -o testit.x86_64h.o $<
|
|
|
|
testit.x86_64.o: main.c
|
|
$(CC) -isysroot $(SDKROOT) -g -O0 -arch x86_64 -c -o testit.x86_64.o $<
|