with how it is done for a lean binary In particular this affects how target create --arch is handled — it allowed us to override the deployment target (a useful feature for the expression evaluator), but the fat binary case didn't. rdar://problem/66024437 Differential Revision: https://reviews.llvm.org/D85049 (cherry picked from commit 470bdd3caaab0b6e0ffed4da304244be40b78668)
21 lines
632 B
Makefile
21 lines
632 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) -target x86_64h-apple-macosx10.9 -o testit.x86_64h $<
|
|
|
|
testit.x86_64: testit.x86_64.o
|
|
$(CC) -isysroot $(SDKROOT) -target x86_64-apple-macosx10.9 -o testit.x86_64 $<
|
|
|
|
testit.x86_64h.o: main.c
|
|
$(CC) -isysroot $(SDKROOT) -g -O0 -target x86_64h-apple-macosx10.9-apple-macosx10.9-apple-macosx10.9-apple-macosx10.9 -c -o testit.x86_64h.o $<
|
|
|
|
testit.x86_64.o: main.c
|
|
$(CC) -isysroot $(SDKROOT) -g -O0 -target x86_64-apple-macosx10.9 -c -o testit.x86_64.o $<
|