Nuke the old JIT.
[oota-llvm.git] / unittests / ExecutionEngine / CMakeLists.txt
index 5ca99046beaadfec354d1899d910efe8e43ce4a7..783c9b519216d61a0536f5f64de3b8cd6fc1ab69 100644 (file)
@@ -1,11 +1,18 @@
 set(LLVM_LINK_COMPONENTS
-  jit
-  interpreter
-  nativecodegen
+  Core
+  ExecutionEngine
+  Interpreter
+  MC
+  Support
   )
 
 add_llvm_unittest(ExecutionEngineTests
   ExecutionEngineTest.cpp
   )
 
-add_subdirectory(JIT)
+# Include MCJIT tests only if native arch is a built JIT target.
+list(FIND LLVM_TARGETS_TO_BUILD "${LLVM_NATIVE_ARCH}" build_idx)
+list(FIND LLVM_TARGETS_WITH_JIT "${LLVM_NATIVE_ARCH}" jit_idx)
+if (NOT build_idx LESS 0 AND NOT jit_idx LESS 0)
+  add_subdirectory(MCJIT)
+endif()