summaryrefslogtreecommitdiff
path: root/lld/tools
diff options
context:
space:
mode:
authorJez Ng <jezng@fb.com>2021-04-16 16:46:45 -0400
committerJez Ng <jezng@fb.com>2021-04-16 16:47:14 -0400
commitca6751043d8899b12baeb48621e61fb352cfee09 (patch)
tree1af37f5e04bc13038d5c4c6fdd1fd48f8a201339 /lld/tools
parent657b325416682e37c43756d55a31dc729a062387 (diff)
downloadllvm-ca6751043d8899b12baeb48621e61fb352cfee09.tar.gz
[lld-macho] Initial groundwork for -bitcode_bundle
This diff creates an empty XAR file and copies it into `__LLVM,__bundle`. Follow-up work will actually populate the contents of that XAR. Reviewed By: #lld-macho, gkm Differential Revision: https://reviews.llvm.org/D100650
Diffstat (limited to 'lld/tools')
-rw-r--r--lld/tools/lld/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/lld/tools/lld/CMakeLists.txt b/lld/tools/lld/CMakeLists.txt
index e77b2161a873..827511d35a79 100644
--- a/lld/tools/lld/CMakeLists.txt
+++ b/lld/tools/lld/CMakeLists.txt
@@ -20,6 +20,10 @@ target_link_libraries(lld
lldWasm
)
+if(HAVE_LIBXAR)
+ target_link_libraries(lld PRIVATE ${XAR_LIB})
+endif()
+
install(TARGETS lld
RUNTIME DESTINATION bin)