[libc] Switch to using the generic `<gpuintrin.h>` implementations (#121810)
[llvm-project.git] / bolt / unittests / Core / CMakeLists.txt
blob208cf6ced73585fab429e4318951218e5987da34
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   MemoryMaps.cpp
12   DynoStats.cpp
14   DISABLE_LLVM_LINK_LLVM_DYLIB
15   )
17 target_link_libraries(CoreTests
18   PRIVATE
19   LLVMBOLTCore
20   LLVMBOLTRewrite
21   LLVMBOLTProfile
22   LLVMTestingSupport
23   )
25 foreach (tgt ${BOLT_TARGETS_TO_BUILD})
26   include_directories(
27     ${LLVM_MAIN_SRC_DIR}/lib/Target/${tgt}
28     ${LLVM_BINARY_DIR}/lib/Target/${tgt}
29   )
30   string(TOUPPER "${tgt}" upper)
31   target_compile_definitions(CoreTests PRIVATE "${upper}_AVAILABLE")
32 endforeach()