[PATCH] D45436: [llvm-exegesis] Add a flag to disable libpfm even if present.
Clement Courbet via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 11 00:43:57 PDT 2018
courbet added inline comments.
================
Comment at: cmake/config-ix.cmake:94
+if (LLVM_ENABLE_LIBPFM)
+ check_library_exists(pfm pfm_initialize "" HAVE_LIBPFM_INITIALIZE)
+ if(HAVE_LIBPFM_INITIALIZE)
----------------
lebedev.ri wrote:
> Sidenote: **normally**, this should be in a `cmake/Modules/FindPFM.cmake`, and this should be just
> ```
> if (LLVM_ENABLE_LIBPFM)
> find_package(PFM REQUIRED)
> endif()
> ```
>
Good idea. I've split this off to a separate module in r329783.
Repository:
rL LLVM
https://reviews.llvm.org/D45436
More information about the llvm-commits
mailing list