diff --git a/lld/MachO/CMakeLists.txt b/lld/MachO/CMakeLists.txt --- a/lld/MachO/CMakeLists.txt +++ b/lld/MachO/CMakeLists.txt @@ -52,3 +52,7 @@ MachOOptionsTableGen ${tablegen_deps} ) + +if(HAVE_LIBXAR) + target_link_libraries(lldMachO2 PRIVATE ${XAR_LIB}) +endif()