[PATCH] D81922: [llvm] Disable linking llvm-exegesis to dylib
    Michał Górny via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Tue Jun 16 03:50:10 PDT 2020
    
    
  
mgorny created this revision.
mgorny added reviewers: courbet, gchatelet, lebedev.ri, MaskRay.
Herald added a subscriber: mstojanovic.
Herald added a project: LLVM.
Force linking llvm-exegesis to static LLVM libraries instead of dylib
to prevent duplicate symbols due to linking both.  Ideally, we'd want
to link to the dylib only here but the target sub-libraries use hidden
symbols from LLVM target libraries and therefore linking the dylib
fails.
https://reviews.llvm.org/D81922
Files:
  llvm/tools/llvm-exegesis/CMakeLists.txt
Index: llvm/tools/llvm-exegesis/CMakeLists.txt
===================================================================
--- llvm/tools/llvm-exegesis/CMakeLists.txt
+++ llvm/tools/llvm-exegesis/CMakeLists.txt
@@ -5,6 +5,7 @@
   )
 
 add_llvm_tool(llvm-exegesis
+  DISABLE_LLVM_LINK_LLVM_DYLIB
   llvm-exegesis.cpp
   )
 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D81922.271019.patch
Type: text/x-patch
Size: 315 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200616/ebc281b4/attachment.bin>
    
    
More information about the llvm-commits
mailing list