Disable JIT/MCJIT tests in unittests/ExecutionEngine for the targets that don't suppo...
authorJyotsna Verma <jverma@codeaurora.org>
Thu, 28 Mar 2013 03:38:29 +0000 (03:38 +0000)
committerJyotsna Verma <jverma@codeaurora.org>
Thu, 28 Mar 2013 03:38:29 +0000 (03:38 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178221 91177308-0d34-0410-b5e6-96231b3b80d8

unittests/ExecutionEngine/CMakeLists.txt
unittests/ExecutionEngine/Makefile

index ed7f10a23c8ade4e892736ee2781bf64a3fd6a88..4eefc1e3bb1b0ddcc758cd81311005a4893dde53 100644 (file)
@@ -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()
index ca1195631a22e808062b26ad0c18f9583a66825f..c779a6a47c14ff13af9a8294b2e8b11bc47a7716 100644 (file)
 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