]> git.saurik.com Git - apple/ld64.git/blobdiff - unit-tests/test-cases/lto-dead_strip-objc/Makefile
ld64-127.2.tar.gz
[apple/ld64.git] / unit-tests / test-cases / lto-dead_strip-objc / Makefile
index ccd5b5955d553656320825a296958267d6703de5..afd69480379538b8c94bc2aeec10b50014355562 100644 (file)
@@ -27,14 +27,12 @@ include ${TESTROOT}/include/common.makefile
 # <rdar://problem/8481987> Link Time Optimization crashes linker with 'dead code strip' + hidden symbol
 #
 
-LLVMGCC = /Developer/usr/bin/llvm-gcc-4.2 -arch ${ARCH}
-LLVMGXX = /Developer/usr/bin/llvm-g++-4.2 -arch ${ARCH}
 
 run: all
 
 all:
-       ${LLVMGCC} ${CCFLAGS} --emit-llvm foo.m  -c -o foo.o -fvisibility=hidden
-       ${LLVMGCC} ${CCFLAGS} -dynamiclib foo.o -o libfoo.dylib -dead_strip -framework Foundation
+       ${CC} ${CCFLAGS} -flto foo.m  -c -o foo.o -fvisibility=hidden
+       ${CC} ${CCFLAGS} -dynamiclib foo.o -o libfoo.dylib -dead_strip -framework Foundation
        ${PASS_IFF_GOOD_MACHO} libfoo.dylib
        
 clean: