This is an archive of the discontinued LLVM Phabricator instance.

[libcxxabi] Omit dllimport in public headers in MinGW mode
ClosedPublic

Authored by mstorsjo on Apr 15 2023, 3:03 PM.

Details

Reviewers
ldionne
Group Reviewers
Restricted Project
Commits
rG692518d04b2d: [libcxxabi] Omit dllimport in public headers in MinGW mode
Summary

This matches the corresponding change to libcxx headers in
dfa88927ae1411ccc3b248b7e624f2acf623d947.

This avoids needing to define _LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS
when building libcxxabi tests, for two reasons:

  • It defaults to normal linkage (as opposed to dllimport), fixing linking of a static library version of libcxx/libcxxabi
  • It avoids issues with using dllimport declarations on symbols when including cxxabi implementations into the testcase itself

This allows simplifying D147638.

Diff Detail

Event Timeline

mstorsjo created this revision.Apr 15 2023, 3:03 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 15 2023, 3:03 PM
mstorsjo requested review of this revision.Apr 15 2023, 3:03 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 15 2023, 3:03 PM
Herald added a reviewer: Restricted Project. · View Herald Transcript
ldionne accepted this revision.Apr 18 2023, 6:13 AM
ldionne added a subscriber: ldionne.

Not a huge fan, but at least it makes libc++ and libc++abi consistent wrt how they handle that.

This revision is now accepted and ready to land.Apr 18 2023, 6:13 AM
This revision was landed with ongoing or failed builds.Apr 19 2023, 3:37 AM
This revision was automatically updated to reflect the committed changes.