Add LLVM_USE_PERF option to account for the same flag in target llvm

This commit is contained in:
Sameer Rahmani 2022-06-18 11:05:54 +01:00
parent 31cbbb9f71
commit 055df07ab9
2 changed files with 4 additions and 1 deletions

View File

@ -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

View File

@ -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