[llvm] r178221 - Disable JIT/MCJIT tests in unittests/ExecutionEngine for the targets that don't support JIT.

Jyotsna Verma jverma at codeaurora.org
Wed Mar 27 20:38:29 PDT 2013


Author: jverma
Date: Wed Mar 27 22:38:29 2013
New Revision: 178221

URL: http://llvm.org/viewvc/llvm-project?rev=178221&view=rev
Log:
Disable JIT/MCJIT tests in unittests/ExecutionEngine for the targets that don't support JIT.

Modified:
    llvm/trunk/unittests/ExecutionEngine/CMakeLists.txt
    llvm/trunk/unittests/ExecutionEngine/Makefile

Modified: llvm/trunk/unittests/ExecutionEngine/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/ExecutionEngine/CMakeLists.txt?rev=178221&r1=178220&r2=178221&view=diff
==============================================================================
--- llvm/trunk/unittests/ExecutionEngine/CMakeLists.txt (original)
+++ llvm/trunk/unittests/ExecutionEngine/CMakeLists.txt Wed Mar 27 22:38:29 2013
@@ -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()

Modified: llvm/trunk/unittests/ExecutionEngine/Makefile
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/ExecutionEngine/Makefile?rev=178221&r1=178220&r2=178221&view=diff
==============================================================================
--- llvm/trunk/unittests/ExecutionEngine/Makefile (original)
+++ llvm/trunk/unittests/ExecutionEngine/Makefile Wed Mar 27 22:38:29 2013
@@ -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





More information about the llvm-commits mailing list