diff options
| author | Jyotsna Verma <jverma@codeaurora.org> | 2013-03-28 03:38:29 +0000 |
|---|---|---|
| committer | Jyotsna Verma <jverma@codeaurora.org> | 2013-03-28 03:38:29 +0000 |
| commit | 8542abd762f723500a12183eaa508d3c52d019c6 (patch) | |
| tree | f213f92630873f077d1ee4073a7b2705c4b80eb4 | |
| parent | 035b4825ce208d4acdf26750384da5d4aa7584dd (diff) | |
| download | bcm5719-llvm-8542abd762f723500a12183eaa508d3c52d019c6.tar.gz bcm5719-llvm-8542abd762f723500a12183eaa508d3c52d019c6.zip | |
Disable JIT/MCJIT tests in unittests/ExecutionEngine for the targets that don't support JIT.
llvm-svn: 178221
| -rw-r--r-- | llvm/unittests/ExecutionEngine/CMakeLists.txt | 8 | ||||
| -rw-r--r-- | llvm/unittests/ExecutionEngine/Makefile | 5 |
2 files changed, 10 insertions, 3 deletions
diff --git a/llvm/unittests/ExecutionEngine/CMakeLists.txt b/llvm/unittests/ExecutionEngine/CMakeLists.txt index ed7f10a23c8..4eefc1e3bb1 100644 --- a/llvm/unittests/ExecutionEngine/CMakeLists.txt +++ b/llvm/unittests/ExecutionEngine/CMakeLists.txt @@ -6,5 +6,9 @@ add_llvm_unittest(ExecutionEngineTests ExecutionEngineTest.cpp ) -add_subdirectory(JIT) -add_subdirectory(MCJIT) +# Include JIT/MCJIT tests only if native arch is a JIT target. +list(FIND LLVM_TARGETS_WITH_JIT "${LLVM_NATIVE_ARCH}" have_jit) +if (NOT have_jit EQUAL -1 ) + add_subdirectory(JIT) + add_subdirectory(MCJIT) +endif() diff --git a/llvm/unittests/ExecutionEngine/Makefile b/llvm/unittests/ExecutionEngine/Makefile index ca1195631a2..c779a6a47c1 100644 --- a/llvm/unittests/ExecutionEngine/Makefile +++ b/llvm/unittests/ExecutionEngine/Makefile @@ -10,7 +10,10 @@ LEVEL = ../.. TESTNAME = ExecutionEngine LINK_COMPONENTS :=interpreter -PARALLEL_DIRS = JIT MCJIT + +ifeq ($(TARGET_HAS_JIT),1) + PARALLEL_DIRS = JIT MCJIT +endif include $(LEVEL)/Makefile.config include $(LLVM_SRC_ROOT)/unittests/Makefile.unittest |

