Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / unittests / ExecutionEngine / CMakeLists.txt
blobab6b9e7070f9ec404a0ceb9ab5b5e91d3a79f71a
1 set(LLVM_LINK_COMPONENTS
2   Core
3   ExecutionEngine
4   Interpreter
5   MC
6   OrcJIT
7   RuntimeDyld
8   Support
9   )
11 add_llvm_unittest(ExecutionEngineTests
12   ExecutionEngineTest.cpp
13   )
15 add_subdirectory(JITLink)
16 add_subdirectory(Orc)
18 # Include MCJIT tests only if native arch is a built JIT target.
19 list(FIND LLVM_TARGETS_TO_BUILD "${LLVM_NATIVE_ARCH}" build_idx)
20 list(FIND LLVM_TARGETS_WITH_JIT "${LLVM_NATIVE_ARCH}" jit_idx)
21 if (NOT build_idx LESS 0 AND NOT jit_idx LESS 0)
22   add_subdirectory(MCJIT)
23 endif()
25 set_property(TARGET ExecutionEngineTests PROPERTY FOLDER "Tests/UnitTests/ExecutionTests")