Commit 0aa5aeb
Jonathan Peyton
[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/D1398571 parent 4a64024 commit 0aa5aeb
1 file changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7242 | 7242 | | |
7243 | 7243 | | |
7244 | 7244 | | |
7245 | | - | |
| 7245 | + | |
| 7246 | + | |
7246 | 7247 | | |
7247 | 7248 | | |
7248 | | - | |
| 7249 | + | |
| 7250 | + | |
7249 | 7251 | | |
7250 | 7252 | | |
7251 | 7253 | | |
| |||
0 commit comments