[SystemZ] Add test missing from r186148
[oota-llvm.git] / unittests / ExecutionEngine / CMakeLists.txt
index 5ca99046beaadfec354d1899d910efe8e43ce4a7..4eefc1e3bb1b0ddcc758cd81311005a4893dde53 100644 (file)
@@ -1,11 +1,14 @@
 set(LLVM_LINK_COMPONENTS
-  jit
   interpreter
-  nativecodegen
   )
 
 add_llvm_unittest(ExecutionEngineTests
   ExecutionEngineTest.cpp
   )
 
-add_subdirectory(JIT)
+# 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()