[PATCH] D48075: [llvm-exegesis] Move libpfm linking to LLVMExegesis.
Guillaume Chatelet via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 12 06:11:43 PDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rL334499: [llvm-exegesis] Move libpfm linking to LLVMExegesis. (authored by gchatelet, committed by ).
Repository:
rL LLVM
https://reviews.llvm.org/D48075
Files:
llvm/trunk/tools/llvm-exegesis/CMakeLists.txt
llvm/trunk/tools/llvm-exegesis/lib/CMakeLists.txt
llvm/trunk/unittests/tools/llvm-exegesis/CMakeLists.txt
Index: llvm/trunk/unittests/tools/llvm-exegesis/CMakeLists.txt
===================================================================
--- llvm/trunk/unittests/tools/llvm-exegesis/CMakeLists.txt
+++ llvm/trunk/unittests/tools/llvm-exegesis/CMakeLists.txt
@@ -17,10 +17,6 @@
)
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()
Index: llvm/trunk/tools/llvm-exegesis/lib/CMakeLists.txt
===================================================================
--- llvm/trunk/tools/llvm-exegesis/lib/CMakeLists.txt
+++ llvm/trunk/tools/llvm-exegesis/lib/CMakeLists.txt
@@ -27,5 +27,9 @@
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")
Index: llvm/trunk/tools/llvm-exegesis/CMakeLists.txt
===================================================================
--- llvm/trunk/tools/llvm-exegesis/CMakeLists.txt
+++ llvm/trunk/tools/llvm-exegesis/CMakeLists.txt
@@ -9,7 +9,3 @@
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()
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D48075.150937.patch
Type: text/x-patch
Size: 1403 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180612/7baa846b/attachment.bin>
More information about the llvm-commits
mailing list