[all-commits] [llvm/llvm-project] 0aa5ae: [OpenMP][libomp] Fix macOS 12 library destruction

Jonathan Peyton via All-commits all-commits at lists.llvm.org
Mon Jan 16 20:43:19 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0aa5aebd0ace94cfb6b975b16024fe90a6139acf
      https://github.com/llvm/llvm-project/commit/0aa5aebd0ace94cfb6b975b16024fe90a6139acf
  Author: Jonathan Peyton <jonathan.l.peyton at intel.com>
  Date:   2023-01-16 (Mon, 16 Jan 2023)

  Changed paths:
    M openmp/runtime/src/kmp_runtime.cpp

  Log Message:
  -----------
  [OpenMP][libomp] Fix macOS 12 library destruction

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+.

Differential Revision: https://reviews.llvm.org/D139857




More information about the All-commits mailing list