mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-30 07:22:55 +01:00
c3c55a2d17
The JITTests and MCJITTests unit test targets require a native arch with JIT support, otherwise fail to link. llvm-svn: 210411
19 lines
453 B
CMake
19 lines
453 B
CMake
set(LLVM_LINK_COMPONENTS
|
|
Core
|
|
ExecutionEngine
|
|
Interpreter
|
|
Support
|
|
)
|
|
|
|
add_llvm_unittest(ExecutionEngineTests
|
|
ExecutionEngineTest.cpp
|
|
)
|
|
|
|
# Include JIT/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(JIT)
|
|
add_subdirectory(MCJIT)
|
|
endif()
|