Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / bolt / unittests / Core / CMakeLists.txt
blobbad7108dad0b7ba9a069846a75b8c0287a4ed598
1 set(LLVM_LINK_COMPONENTS
2   DebugInfoDWARF
3   Object
4   MC
5   ${LLVM_TARGETS_TO_BUILD}
6   )
8 add_bolt_unittest(CoreTests
9   BinaryContext.cpp
10   MCPlusBuilder.cpp
11   DynoStats.cpp
13   DISABLE_LLVM_LINK_LLVM_DYLIB
14   )
16 target_link_libraries(CoreTests
17   PRIVATE
18   LLVMBOLTCore
19   LLVMBOLTRewrite
20   )
22 foreach (tgt ${BOLT_TARGETS_TO_BUILD})
23   include_directories(
24     ${LLVM_MAIN_SRC_DIR}/lib/Target/${tgt}
25     ${LLVM_BINARY_DIR}/lib/Target/${tgt}
26   )
27   string(TOUPPER "${tgt}" upper)
28   target_compile_definitions(CoreTests PRIVATE "${upper}_AVAILABLE")
29 endforeach()