[llvm] r334499 - [llvm-exegesis] Move libpfm linking to LLVMExegesis.
Guillaume Chatelet via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 12 06:07:16 PDT 2018
Author: gchatelet
Date: Tue Jun 12 06:07:16 2018
New Revision: 334499
URL: http://llvm.org/viewvc/llvm-project?rev=334499&view=rev
Log:
[llvm-exegesis] Move libpfm linking to LLVMExegesis.
Summary: This patch moves linking of libpfm from different places to a single one.
Reviewers: courbet
Subscribers: mgorny, tschuett, llvm-commits
Differential Revision: https://reviews.llvm.org/D48075
Modified:
llvm/trunk/tools/llvm-exegesis/CMakeLists.txt
llvm/trunk/tools/llvm-exegesis/lib/CMakeLists.txt
llvm/trunk/unittests/tools/llvm-exegesis/CMakeLists.txt
Modified: llvm/trunk/tools/llvm-exegesis/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-exegesis/CMakeLists.txt?rev=334499&r1=334498&r2=334499&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-exegesis/CMakeLists.txt (original)
+++ llvm/trunk/tools/llvm-exegesis/CMakeLists.txt Tue Jun 12 06:07:16 2018
@@ -9,7 +9,3 @@ add_llvm_tool(llvm-exegesis
add_subdirectory(lib)
target_link_libraries(llvm-exegesis PRIVATE LLVMExegesis)
-
-if(LLVM_ENABLE_LIBPFM AND HAVE_LIBPFM)
- target_link_libraries(llvm-exegesis PRIVATE pfm)
-endif()
Modified: llvm/trunk/tools/llvm-exegesis/lib/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-exegesis/lib/CMakeLists.txt?rev=334499&r1=334498&r2=334499&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-exegesis/lib/CMakeLists.txt (original)
+++ llvm/trunk/tools/llvm-exegesis/lib/CMakeLists.txt Tue Jun 12 06:07:16 2018
@@ -27,5 +27,9 @@ llvm_map_components_to_libnames(libs
Support
)
+if(LLVM_ENABLE_LIBPFM AND HAVE_LIBPFM)
+ list(APPEND libs pfm)
+endif()
+
target_link_libraries(LLVMExegesis ${libs})
set_target_properties(LLVMExegesis PROPERTIES FOLDER "Libraries")
Modified: llvm/trunk/unittests/tools/llvm-exegesis/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/tools/llvm-exegesis/CMakeLists.txt?rev=334499&r1=334498&r2=334499&view=diff
==============================================================================
--- llvm/trunk/unittests/tools/llvm-exegesis/CMakeLists.txt (original)
+++ llvm/trunk/unittests/tools/llvm-exegesis/CMakeLists.txt Tue Jun 12 06:07:16 2018
@@ -17,10 +17,6 @@ add_llvm_unittest(LLVMExegesisTests
)
target_link_libraries(LLVMExegesisTests PRIVATE LLVMExegesis)
-if(LLVM_ENABLE_LIBPFM AND HAVE_LIBPFM)
- target_link_libraries(LLVMExegesisTests PRIVATE pfm)
-endif()
-
if(LLVM_TARGETS_TO_BUILD MATCHES "X86")
add_subdirectory(X86)
endif()
More information about the llvm-commits
mailing list