[PATCH] D39020: Statically link llvm-cfi-verify's libraries.
Mitch Phillips via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 17 17:48:03 PDT 2017
hctim updated this revision to Diff 119411.
hctim marked 2 inline comments as done.
hctim added a comment.
- pcc@'s comments
https://reviews.llvm.org/D39020
Files:
tools/llvm-cfi-verify/lib/CMakeLists.txt
unittests/tools/llvm-cfi-verify/CMakeLists.txt
Index: unittests/tools/llvm-cfi-verify/CMakeLists.txt
===================================================================
--- unittests/tools/llvm-cfi-verify/CMakeLists.txt
+++ unittests/tools/llvm-cfi-verify/CMakeLists.txt
@@ -4,7 +4,6 @@
AllTargetsDescs
AllTargetsDisassemblers
AllTargetsInfos
- CFIVerify
MC
MCParser
Object
@@ -15,4 +14,5 @@
if (NOT x86_idx LESS 0)
add_llvm_unittest(CFIVerifyTests
FileAnalysis.cpp)
+ target_link_libraries(CFIVerifyTests LLVMCFIVerify)
endif()
Index: tools/llvm-cfi-verify/lib/CMakeLists.txt
===================================================================
--- tools/llvm-cfi-verify/lib/CMakeLists.txt
+++ tools/llvm-cfi-verify/lib/CMakeLists.txt
@@ -1,9 +1,12 @@
-add_llvm_library(LLVMCFIVerify
+add_library(LLVMCFIVerify
+ STATIC
FileAnalysis.cpp
- FileAnalysis.h
+ FileAnalysis.h)
- LINK_COMPONENTS
+llvm_update_compile_flags(LLVMCFIVerify)
+llvm_map_components_to_libnames(libs
MC
MCParser
Object
Support)
+target_link_libraries(LLVMCFIVerify ${libs})
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D39020.119411.patch
Type: text/x-patch
Size: 1048 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171018/cb78e2a9/attachment.bin>
More information about the llvm-commits
mailing list