ca6751043d8899b12baeb48621e61fb352cfee09 added a dependency on XAR (at
least for the shared libs build), so without this change we get the
following linker error:
Undefined symbols for architecture x86_64:
"_xar_close", referenced from:
lld::macho::BitcodeBundleSection::finalize() in SyntheticSections.cpp.o
Reviewed By: #lld-macho, int3, thakis
Differential Revision: https://reviews.llvm.org/D100999
MachOOptionsTableGen
${tablegen_deps}
)
+
+if(LLVM_HAVE_LIBXAR)
+ target_link_libraries(lldMachO2 PRIVATE ${XAR_LIB})
+endif()
lldWasm
)
-if(LLVM_HAVE_LIBXAR)
- target_link_libraries(lld PRIVATE ${XAR_LIB})
-endif()
-
install(TARGETS lld
RUNTIME DESTINATION bin)