1 set(LLVM_LINK_COMPONENTS 2 Core 3 ExecutionEngine 4 Interpreter 5 Support 6 ) 7 8 add_llvm_unittest(ExecutionEngineTests 9 ExecutionEngineTest.cpp 10 ) 11 12 # Include JIT/MCJIT tests only if native arch is a built JIT target. 13 list(FIND LLVM_TARGETS_TO_BUILD "${LLVM_NATIVE_ARCH}" build_idx) 14 list(FIND LLVM_TARGETS_WITH_JIT "${LLVM_NATIVE_ARCH}" jit_idx) 15 if (NOT build_idx LESS 0 AND NOT jit_idx LESS 0) 16 add_subdirectory(JIT) 17 add_subdirectory(MCJIT) 18 endif() 19