This is an archive of the discontinued LLVM Phabricator instance.

[lld-macho] Fix BUILD_SHARED_LIBS build
ClosedPublic

Authored by arichardson on Apr 21 2021, 2:59 PM.

Details

Reviewers
int3
thakis
gkm
Group Reviewers
Restricted Project
Commits
rG90344499ae76: [lld-macho] Fix BUILD_SHARED_LIBS build
Summary

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

Diff Detail

Event Timeline

arichardson created this revision.Apr 21 2021, 2:59 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 21 2021, 2:59 PM
arichardson requested review of this revision.Apr 21 2021, 2:59 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 21 2021, 2:59 PM
int3 accepted this revision.Apr 21 2021, 3:22 PM

Thank you!

This revision is now accepted and ready to land.Apr 21 2021, 3:22 PM

we should remove it from lld/tools/lld/CMakeLists.txt then, rigth?

address review feedback

thakis accepted this revision.Jun 3 2021, 11:27 AM

Do you have commit access or should I land this for you?

Sorry, forgot to commit this. Will do so now.

rebase after macro name change

This revision was landed with ongoing or failed builds.Jun 3 2021, 12:00 PM
This revision was automatically updated to reflect the committed changes.