This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP][libomp] Fix macOS 12 library destruction
ClosedPublic

Authored by jlpeyton on Dec 12 2022, 9:37 AM.

Details

Summary

When building the library with icc and using it on macOS 12,
the library destruction process is skipped which has many OMPT tests
failing for macOS 12. This change registers the
__kmp_internal_end_library() call for atexit() which will be a
harmless, redundant call for macOS 11 and below and the only destructor
called for macOS 12+.

Diff Detail

Event Timeline

jlpeyton created this revision.Dec 12 2022, 9:37 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 12 2022, 9:37 AM
jlpeyton requested review of this revision.Dec 12 2022, 9:37 AM
This revision is now accepted and ready to land.Dec 19 2022, 1:52 PM
This revision was automatically updated to reflect the committed changes.