Wrap xar/xar.h include in extern "C" block
authorMike Hommey <mh-llvm@glandium.org>
Thu, 23 Sep 2021 07:25:36 +0000 (09:25 +0200)
committerSylvestre Ledru <sylvestre@debian.org>
Thu, 23 Sep 2021 07:37:30 +0000 (09:37 +0200)
commit08ef24f6abdfaee038c47e3fe0b61b40e8fd9053
tree8f05121d1d83623aec22b7d999667d3f4c7d59ac
parent76656ec8ec535bd17afc998112a83c7c55ad7719
Wrap xar/xar.h include in extern "C" block

Without such wrapping, linking lld fails with missing symbols because of
C++ symbol mangling with older versions of the MacOSX SDK, in which
xar.h doesn't have an extern "C" block itself.

Reviewed By: #lld-macho, thakis

Differential Revision: https://reviews.llvm.org/D110224
lld/MachO/SyntheticSections.cpp