X-Git-Url: https://git.saurik.com/apple/ld64.git/blobdiff_plain/a645023da60d22e86be13f7b4d97adeff8bc6665..0a8dc3df050bd5c0a70486b9ebdb9dccce439f3e:/unit-tests/test-cases/objc-category-optimize-load/Makefile diff --git a/unit-tests/test-cases/objc-category-optimize-load/Makefile b/unit-tests/test-cases/objc-category-optimize-load/Makefile index 5652312..cfd2cc3 100644 --- a/unit-tests/test-cases/objc-category-optimize-load/Makefile +++ b/unit-tests/test-cases/objc-category-optimize-load/Makefile @@ -26,27 +26,24 @@ include ${TESTROOT}/include/common.makefile # # Verify optimization where categories are merged into classes # -OPTIONS = - ifeq ($(ARCH),i386) - OPTIONS = -fobjc-abi-version=2 -Wl,-objc_abi_version,2 + ALL = all-noopt +else + ALL = all-opt endif -all: all-${ARCH} +all: ${ALL} -all-ppc: +# For platforms that do not perform category optimization +all-noopt: ${PASS_IFF} true -all-i386: all-rest -all-x86_64: all-rest -all-armv6: all-rest - -all-rest: - # check optimzation of category methods +# For platforms that optimize categories +all-opt: + # check optimization of category methods ${CC} ${CCFLAGS} ${OPTIONS} -dynamiclib foo.m cat1.m -framework Foundation -o libfoo.dylib - size -l libfoo.dylib | grep "__objc_catlist:" | ${FAIL_IF_EMPTY} + size -m -l libfoo.dylib | grep "__objc_catlist:" | ${FAIL_IF_EMPTY} ${PASS_IFF_GOOD_MACHO} libfoo.dylib - - + clean: rm -rf libfoo.dylib