]> git.saurik.com Git - apple/ld64.git/blobdiff - unit-tests/test-cases/eh-stripped-symbols/Makefile
ld64-409.12.tar.gz
[apple/ld64.git] / unit-tests / test-cases / eh-stripped-symbols / Makefile
index 15819f06febc9264bac2b6f5c0131d1f95c37ba7..404cc41fd736a4123cd957fd3858e5d0a7b2f7ed 100644 (file)
@@ -7,9 +7,17 @@ include ${TESTROOT}/include/common.makefile
 # the linker can still process unwind info from .o files
 # correctly
 
-run: all
+ifeq (${FILEARCH},arm)
+       FILE_TYPE = KEXTBUNDLE
+endif
 
-all:
+
+all: all-${FILEARCH}
+all-i386: all-zce
+all-x86_64: all-zce
+all-arm: all-good
+
+all-zce:
        ${CXX} ${CCXXFLAGS} main.cxx -g -c -o main1.o -Os
        #strip main1.o -u -s keep.exp -o main2.o
        ${LD} main1.o -r -x -exported_symbols_list keep.exp -o main2.o
@@ -19,5 +27,8 @@ all:
        ${UNWINDDUMP} -arch ${ARCH} -no_symbols main2 > main2.unwind
        ${PASS_IFF} diff main1.unwind main2.unwind
 
+all-good:
+       ${PASS_IFF} true
+
 clean:
        rm -f main1* main2*