This is an archive of the discontinued LLVM Phabricator instance.

WIP: [libc] update LibcTableGenUtil for LLVM_LINK_LLVM_DYLIB
ClosedPublic

Authored by stephenneuendorffer on Mar 10 2023, 11:55 PM.

Details

Summary

This library is linked into libc-hdrgen, which is compiled with
DISABLE_LLVM_LINK_LLVM_DYLIB. This option avoids linking with
libLLVM.so when LLVM_LINK_LLVM_DYLIB is specified. Unfortunately,
this can cause wierd linkage errors where symbols are defined
multiple times, with one definition coming from static linkage
and another definition coming from libLLVM.so. This is usually
apparent as a link error with options defined multiple times.

This patch adds DISABLE_LLVM_LINK_LLVM_DYLIB to this library, to
get consistent linkage of libc-hdrgen.

Diff Detail

Event Timeline

Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptMar 10 2023, 11:55 PM
stephenneuendorffer requested review of this revision.Mar 10 2023, 11:55 PM
sivachandra accepted this revision.Mar 11 2023, 12:02 AM
This revision is now accepted and ready to land.Mar 11 2023, 12:02 AM
lntue accepted this revision.Mar 11 2023, 7:36 AM