mirror-llvm-project/openmp
Michael Kruse afb80bddf1
[Runtimes] Introduce variables containing resource dir paths (#177953)
Introduce common infrastructure for runtimes that determines compiler
resource path locations. These variables introduced are:

 * RUNTIMES_OUTPUT_RESOURCE_DIR
 * RUNTIMES_INSTALL_RESOURCE_PATH
 
That contain the location for the compiler resource path (typically
`lib/clang/<version>`) in the build tree and the install tree (the
latter relative to CMAKE_INSTALL_PREFIX).

Additionally, define

 * RUNTIMES_OUTPUT_RESOURCE_LIB_DIR
 * RUNTIMES_INSTALL_RESOURCE_LIB_PATH

as for the location of clang/flang version-locked libraries (typically
`lib${LLVM_LIBDIR_SUFFIX}/<targer-triple>`, but also depends on `APPLE`
and `LLVM_ENABLE_PER_TARGET_RUNTIME_DIR`). This code is moved from
flang-rt and initially becomes its only user.

Refactored out of #171610 as requested
[here](https://github.com/llvm/llvm-project/pull/171610#discussion_r2687382481).

Extracted `get_runtimes_target_libdir_common` from compiler-rt as
requested
[here](https://github.com/llvm/llvm-project/pull/171610#discussion_r2689565634).
 
Added TODO comments to all runtimes as requested
[here](https://github.com/llvm/llvm-project/pull/171610#issuecomment-3789598635).
2026-04-02 10:32:14 +00:00
..
cmake [openmp] Add support for arm64ec to libomp (#176151) 2026-03-31 13:07:19 +01:00
device [OFFLOAD] Add spirv implementation for named barrier (#180393) 2026-03-27 20:14:09 +01:00
docs [offload] Remove LIBOMPTARGET_SHARED_MEMORY_SIZE envar (#186231) 2026-03-12 21:21:29 -07:00
libompd [openmp][cmake][NFCI] Avoid non-eval uses of ${var} (#182267) 2026-03-02 13:21:36 +01:00
module Revert "[Flang] Move builtin .mod generation into runtimes (Reapply #137828) (#169638)" 2025-12-09 22:39:41 +01:00
runtime [openmp] Add support for Arm64X to libomp (#176157) 2026-03-31 16:39:02 +01:00
tools [OpenMP][OMPT] Remove Threads dependency from omptest link interface (#186183) 2026-03-12 18:16:36 +01:00
.gitignore
CMakeLists.txt [Runtimes] Introduce variables containing resource dir paths (#177953) 2026-04-02 10:32:14 +00:00
CREDITS.txt
LICENSE.TXT
Maintainers.md Nominate Michael Klemm as lead maintainer of OpenMP (#175964) 2026-01-14 15:17:26 +00:00