X-Git-Url: https://git.saurik.com/apple/ld64.git/blobdiff_plain/a645023da60d22e86be13f7b4d97adeff8bc6665..0a8dc3df050bd5c0a70486b9ebdb9dccce439f3e:/unit-tests/test-cases/lto-objc-image-info/Makefile diff --git a/unit-tests/test-cases/lto-objc-image-info/Makefile b/unit-tests/test-cases/lto-objc-image-info/Makefile index 8b13444..2ab56f7 100644 --- a/unit-tests/test-cases/lto-objc-image-info/Makefile +++ b/unit-tests/test-cases/lto-objc-image-info/Makefile @@ -27,16 +27,13 @@ include ${TESTROOT}/include/common.makefile # trivial Objective-C app fails when using libLTO # -LLVMGCC = /Developer/usr/bin/llvm-gcc-4.2 -arch ${ARCH} -LLVMGXX = /Developer/usr/bin/llvm-g++-4.2 -arch ${ARCH} - IMAGE_INFO = "__image_info" ifeq ($(ARCH),x86_64) IMAGE_INFO = "__objc_imageinfo" endif -ifeq ($(ARCH),armv6) +ifeq ($(FILEARCH),arm) IMAGE_INFO = "__objc_imageinfo" endif @@ -44,9 +41,9 @@ endif run: all all: - ${LLVMGCC} ${CCFLAGS} --emit-llvm main.m -c -o main.o - ${LLVMGCC} ${CCFLAGS} main.o -o main -framework Foundation - size -l main | grep ${IMAGE_INFO} | ${FAIL_IF_EMPTY} + ${CC} ${CCFLAGS} -flto main.m -c -o main.o + ${CC} ${CCFLAGS} main.o -o main -framework Foundation + size -m -l main | grep ${IMAGE_INFO} | ${FAIL_IF_EMPTY} ${PASS_IFF_GOOD_MACHO} main clean: