Add LLVM_USE_PERF option to account for the same flag in target llvm
This commit is contained in:
parent
31cbbb9f71
commit
055df07ab9
2
.ci.yml
2
.ci.yml
|
@ -15,7 +15,7 @@ steps:
|
|||
image: rg.fr-par.scw.cloud/serene/llvm:15-8
|
||||
commands:
|
||||
- cmake --version
|
||||
- ./builder build
|
||||
- ./builder build -DLLVM_USE_PERF=ON
|
||||
- ln -s build/compile_commands.json ./compile_commands.json
|
||||
|
||||
- name: Linters
|
||||
|
|
|
@ -279,10 +279,13 @@ if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME)
|
|||
# endforeach(arch)
|
||||
|
||||
|
||||
option(LLVM_USE_PERF "If the target LLVM build is built with LLVM_USE_PERF" OFF)
|
||||
set(CONDITIONAL_COMPONENTS "")
|
||||
|
||||
if(LLVM_USE_PERF)
|
||||
list(APPEND CONDITIONAL_COMPONENTS PerfJITEvents)
|
||||
endif()
|
||||
|
||||
llvm_map_components_to_libnames(llvm_libs
|
||||
core
|
||||
support
|
||||
|
|
Loading…
Reference in New Issue