Debian Codegraph @

bolt/unittests/Profile/CMakeLists.txt

raw
1 set(LLVM_LINK_COMPONENTS
2 DebugInfoDWARF
3 Object
4 ${LLVM_TARGETS_TO_BUILD}
5 )
6
7 add_bolt_unittest(ProfileTests
8 DataAggregator.cpp
9 PerfSpeEvents.cpp
10
11 DISABLE_LLVM_LINK_LLVM_DYLIB
12 )
13
14 target_link_libraries(ProfileTests
15 PRIVATE
16 LLVMBOLTCore
17 LLVMBOLTProfile
18 LLVMTargetParser
19 LLVMTestingSupport
20 )
21
22 foreach (tgt ${BOLT_TARGETS_TO_BUILD})
23 string(TOUPPER "${tgt}" upper)
24 target_compile_definitions(ProfileTests PRIVATE "${upper}_AVAILABLE")
25 endforeach()