[lld] 17e37ba - Fix shared lib build.

Michael Liao via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 18 10:09:04 PST 2019


Author: Michael Liao
Date: 2019-11-18T13:08:51-05:00
New Revision: 17e37ba57a696198c9744eeba4f8f293f155587a

URL: https://github.com/llvm/llvm-project/commit/17e37ba57a696198c9744eeba4f8f293f155587a
DIFF: https://github.com/llvm/llvm-project/commit/17e37ba57a696198c9744eeba4f8f293f155587a.diff

LOG: Fix shared lib build.

Added: 
    

Modified: 
    lld/lib/Core/CMakeLists.txt
    lld/lib/ReaderWriter/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/lld/lib/Core/CMakeLists.txt b/lld/lib/Core/CMakeLists.txt
index 2d4d9ded0886..a2d1b7ade004 100644
--- a/lld/lib/Core/CMakeLists.txt
+++ b/lld/lib/Core/CMakeLists.txt
@@ -21,8 +21,9 @@ add_lld_library(lldCore
     Support
 
   LINK_LIBS
-  ${LLVM_PTHREAD_LIB}
+    lldCommon
+    ${LLVM_PTHREAD_LIB}
 
   DEPENDS
-  ${tablegen_deps}
+    ${tablegen_deps}
   )

diff  --git a/lld/lib/ReaderWriter/CMakeLists.txt b/lld/lib/ReaderWriter/CMakeLists.txt
index bedb836d2c1e..65a68a7578ee 100644
--- a/lld/lib/ReaderWriter/CMakeLists.txt
+++ b/lld/lib/ReaderWriter/CMakeLists.txt
@@ -16,5 +16,6 @@ add_lld_library(lldReaderWriter
     Support
 
   LINK_LIBS
+    lldCommon
     lldCore
   )


        


More information about the llvm-commits mailing list