test-x86_64:
${PASS_IFF} true
-test-armv6:
- gcc foo.c -arch armv4t -c -o foo-v4.o
+test-armv6: test-arm
+test-armv7: test-arm
+
+test-arm:
+ clang foo.c -arch armv4t -c -o foo-v4.o
${FAIL_IF_BAD_OBJ} foo-v4.o
- gcc foo.c -arch armv5 -c -o foo-v5.o
+ clang foo.c -arch armv5 -c -o foo-v5.o
${FAIL_IF_BAD_OBJ} foo-v5.o
- gcc foo.c -arch armv6 -c -o foo-v6.o
+ clang foo.c -arch armv6 -c -o foo-v6.o
${FAIL_IF_BAD_OBJ} foo-v6.o
- gcc foo.c -arch xscale -c -o foo-xscale.o
+ clang foo.c -arch armv7 -c -o foo-v7.o
+ ${FAIL_IF_BAD_OBJ} foo-v7.o
+ clang foo.c -arch xscale -c -o foo-xscale.o
${FAIL_IF_BAD_OBJ} foo-xscale.o
- gcc main.c -arch armv4t -c -o main-v4.o
+ clang main.c -arch armv4t -c -o main-v4.o
${FAIL_IF_BAD_OBJ} main-v4.o
- gcc main.c -arch armv5 -c -o main-v5.o
+ clang main.c -arch armv5 -c -o main-v5.o
${FAIL_IF_BAD_OBJ} main-v5.o
- gcc main.c -arch armv6 -c -o main-v6.o
+ clang main.c -arch armv6 -c -o main-v6.o
${FAIL_IF_BAD_OBJ} main-v6.o
- gcc main.c -arch xscale -c -o main-xscale.o
+ clang main.c -arch xscale -c -o main-xscale.o
${FAIL_IF_BAD_OBJ} main-xscale.o
+ clang main.c -arch armv7 -c -o main-v7.o
+ ${FAIL_IF_BAD_OBJ} main-v7.o
# check V4+V4 -> V4
${LD} -r main-v4.o foo-v4.o -o all.o
otool -hv all.o | grep V4T | ${FAIL_IF_EMPTY}
# check V4+V5 -> V5
- ${LD} -r main-v4.o foo-v5.o -o all.o
- ${FAIL_IF_BAD_OBJ} all.o
- otool -hv all.o | grep V5 | ${FAIL_IF_EMPTY}
+ #${LD} -r main-v4.o foo-v5.o -o all.o
+ #${FAIL_IF_BAD_OBJ} all.o
+ #otool -hv all.o | grep V5 | ${FAIL_IF_EMPTY}
# check V4+V6 -> V6
- ${LD} -r main-v4.o foo-v6.o -o all.o
- ${FAIL_IF_BAD_OBJ} all.o
- otool -hv all.o | grep V6 | ${FAIL_IF_EMPTY}
+ #${LD} -r main-v4.o foo-v6.o -o all.o
+ #${FAIL_IF_BAD_OBJ} all.o
+ #otool -hv all.o | grep V6 | ${FAIL_IF_EMPTY}
# check V4+xscale -> xscale
- ${LD} -r main-v4.o foo-xscale.o -o all.o
- ${FAIL_IF_BAD_OBJ} all.o
- otool -hv all.o | grep XSCALE | ${FAIL_IF_EMPTY}
+ #${LD} -r main-v4.o foo-xscale.o -o all.o
+ #${FAIL_IF_BAD_OBJ} all.o
+ #otool -hv all.o | grep XSCALE | ${FAIL_IF_EMPTY}
# check V5+V5 -> V5
${LD} -r main-v5.o foo-v5.o -o all.o
otool -hv all.o | grep V5 | ${FAIL_IF_EMPTY}
# check V5+V6 -> V6
- ${LD} -r main-v5.o foo-v6.o -o all.o
- ${FAIL_IF_BAD_OBJ} all.o
- otool -hv all.o | grep V6 | ${FAIL_IF_EMPTY}
+ #${LD} -r main-v5.o foo-v6.o -o all.o
+ #${FAIL_IF_BAD_OBJ} all.o
+ #otool -hv all.o | grep V6 | ${FAIL_IF_EMPTY}
# check V5+xscale -> xscale
- ${LD} -r main-v5.o foo-xscale.o -o all.o
- ${FAIL_IF_BAD_OBJ} all.o
- otool -hv all.o | grep XSCALE | ${FAIL_IF_EMPTY}
+ #${LD} -r main-v5.o foo-xscale.o -o all.o
+ #${FAIL_IF_BAD_OBJ} all.o
+ #otool -hv all.o | grep XSCALE | ${FAIL_IF_EMPTY}
# check V6+V6 -> V6
${LD} -r main-v6.o foo-v6.o -o all.o
${FAIL_IF_BAD_OBJ} all.o
otool -hv all.o | grep V6 | ${FAIL_IF_EMPTY}
- # check xscale+xscale -> xscale
- ${LD} -r main-xscale.o foo-xscale.o -o all.o
+ # check V7+V7 -> V7
+ ${LD} -r main-v7.o foo-v7.o -o all.o
${FAIL_IF_BAD_OBJ} all.o
- otool -hv all.o | grep XSCALE | ${FAIL_IF_EMPTY}
+ otool -hv all.o | grep V7 | ${FAIL_IF_EMPTY}
+
+ # check xscale+xscale -> xscale
+ #${LD} -r main-xscale.o foo-xscale.o -o all.o
+ #${FAIL_IF_BAD_OBJ} all.o
+ #otool -hv all.o | grep XSCALE | ${FAIL_IF_EMPTY}
${PASS_IFF} true