[all-commits] [llvm/llvm-project] 799f28: [OpenMP] Fix runtimes default build (#149871)
Michael Kruse via All-commits
all-commits at lists.llvm.org
Fri Jul 25 16:57:19 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 799f28d7a5f155ae5456c87a511fbd18498f6396
https://github.com/llvm/llvm-project/commit/799f28d7a5f155ae5456c87a511fbd18498f6396
Author: Michael Kruse <llvm-project at meinersbur.de>
Date: 2025-07-26 (Sat, 26 Jul 2025)
Changed paths:
M openmp/CMakeLists.txt
M openmp/runtime/src/CMakeLists.txt
M runtimes/CMakeLists.txt
Log Message:
-----------
[OpenMP] Fix runtimes default build (#149871)
The default build of openmp (`cmake -S <llvm-project>/runtimes
-DLLVM_ENABLE_RUNTIMES=openmp`) current fails with
```
CMake Error at /home/meinersbur/src/llvm/flangrt/_src/cmake/Modules/GetClangResourceDir.cmake:17 (string):
string sub-command REGEX, mode MATCH needs at least 5 arguments total to
command.
Call Stack (most recent call first):
/home/meinersbur/src/llvm/flangrt/_src/openmp/CMakeLists.txt:126 (get_clang_resource_dir)
```
The reason is that because it is not a bootstrapping-build, the clang
resource dir that it intends to write files such as `omp-tools.h` into,
is unavailable. Using the Clang resource dir for writing files is
conceptually broken, as that dir might be located in
`/usr/lib/clang/<version>/`. Writing to it is only intended in
bootstrapping builds where Clang is built alongside openmp.
This patch unifies the identification of being in a bootstrapping built.
The same `LLVM_TREE_AVAILABLE` definition is going to be used in
#137828. No reason for each runtime to define its own.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list