[PATCH] D100999: [lld-macho] Fix BUILD_SHARED_LIBS build

Alexander Richardson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 3 12:00:15 PDT 2021


This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG90344499ae76: [lld-macho] Fix BUILD_SHARED_LIBS build (authored by arichardson).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D100999/new/

https://reviews.llvm.org/D100999

Files:
  lld/MachO/CMakeLists.txt
  lld/tools/lld/CMakeLists.txt


Index: lld/tools/lld/CMakeLists.txt
===================================================================
--- lld/tools/lld/CMakeLists.txt
+++ lld/tools/lld/CMakeLists.txt
@@ -20,10 +20,6 @@
   lldWasm
   )
 
-if(LLVM_HAVE_LIBXAR)
-  target_link_libraries(lld PRIVATE ${XAR_LIB})
-endif()
-
 install(TARGETS lld
   RUNTIME DESTINATION bin)
 
Index: lld/MachO/CMakeLists.txt
===================================================================
--- lld/MachO/CMakeLists.txt
+++ lld/MachO/CMakeLists.txt
@@ -55,3 +55,7 @@
   MachOOptionsTableGen
   ${tablegen_deps}
   )
+
+if(LLVM_HAVE_LIBXAR)
+  target_link_libraries(lldMachO2 PRIVATE ${XAR_LIB})
+endif()


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D100999.349633.patch
Type: text/x-patch
Size: 653 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210603/684a596b/attachment.bin>


More information about the llvm-commits mailing list