Merge pull request #2139 from akoeplinger/symbolicate-test-fix
authorMarcos Henrich <marcoshenrich@gmail.com>
Sat, 17 Oct 2015 15:57:10 +0000 (16:57 +0100)
committerMarcos Henrich <marcoshenrich@gmail.com>
Sat, 17 Oct 2015 15:57:10 +0000 (16:57 +0100)
[mono-symbolicate] Skip tests if AOT isn't supported by the current arch

mcs/tools/mono-symbolicate/Makefile

index 75d04c1e21ce9d23a8dd31e477b1cf9b23bc83c4..c9c10608bff4d7d29abf3ffb3e7651afe2b2d4e8 100644 (file)
@@ -41,10 +41,13 @@ BUILD_TEST_EXE = @\
 
 check: test-local
 
+AOT_SUPPORTED = $(shell $(MONO) --aot 2>&1 | grep -q "AOT compilation is not supported" && echo 0 || echo 1)
+
 test-local: all
        $(BUILD_TEST_EXE)
        @echo "Checking $(PROGRAM) without AOT"
        $(CHECK_DIFF)
+ifeq ($(AOT_SUPPORTED), 1)
        @echo "Checking $(PROGRAM) with AOT"
        @MONO_DEBUG=gen-compact-seq-points $(MONO) --aot $(TEST_EXE) > /dev/null
        $(CHECK_DIFF)
@@ -52,3 +55,4 @@ test-local: all
        $(BUILD_TEST_EXE)
        @MONO_DEBUG=gen-compact-seq-points $(MONO) --aot=gen-seq-points-file $(TEST_EXE) > /dev/null
        $(CHECK_DIFF)
+endif