[all-commits] [llvm/llvm-project] 08ef24: Wrap xar/xar.h include in extern "C" block

Sylvestre Ledru via All-commits all-commits at lists.llvm.org
Thu Sep 23 00:37:45 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 08ef24f6abdfaee038c47e3fe0b61b40e8fd9053
      https://github.com/llvm/llvm-project/commit/08ef24f6abdfaee038c47e3fe0b61b40e8fd9053
  Author: Mike Hommey <mh-llvm at glandium.org>
  Date:   2021-09-23 (Thu, 23 Sep 2021)

  Changed paths:
    M lld/MachO/SyntheticSections.cpp

  Log Message:
  -----------
  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




More information about the All-commits mailing list