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
|
image: rg.fr-par.scw.cloud/serene/llvm:15-8
|
||||||
commands:
|
commands:
|
||||||
- cmake --version
|
- cmake --version
|
||||||
- ./builder build
|
- ./builder build -DLLVM_USE_PERF=ON
|
||||||
- ln -s build/compile_commands.json ./compile_commands.json
|
- ln -s build/compile_commands.json ./compile_commands.json
|
||||||
|
|
||||||
- name: Linters
|
- name: Linters
|
||||||
|
|
|
@ -279,10 +279,13 @@ if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME)
|
||||||
# endforeach(arch)
|
# endforeach(arch)
|
||||||
|
|
||||||
|
|
||||||
|
option(LLVM_USE_PERF "If the target LLVM build is built with LLVM_USE_PERF" OFF)
|
||||||
set(CONDITIONAL_COMPONENTS "")
|
set(CONDITIONAL_COMPONENTS "")
|
||||||
|
|
||||||
if(LLVM_USE_PERF)
|
if(LLVM_USE_PERF)
|
||||||
list(APPEND CONDITIONAL_COMPONENTS PerfJITEvents)
|
list(APPEND CONDITIONAL_COMPONENTS PerfJITEvents)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
llvm_map_components_to_libnames(llvm_libs
|
llvm_map_components_to_libnames(llvm_libs
|
||||||
core
|
core
|
||||||
support
|
support
|
||||||
|
|
Loading…
Reference in New Issue