aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/AST/ByteCode/Compiler.cpp
diff options
context:
space:
mode:
authorMichael Kruse <llvm-project@meinersbur.de>2025-08-30 16:28:31 +0200
committerGitHub <noreply@github.com>2025-08-30 16:28:31 +0200
commit62ff9ac4c68f48c089528105259c68943ab176de (patch)
tree54490bdf37cf6415569aae11f4e1b564f03222c5 /clang/lib/AST/ByteCode/Compiler.cpp
parentcacab8a86fc2c6107cf7e9edb746f9634a6aa97a (diff)
downloadllvm-62ff9ac4c68f48c089528105259c68943ab176de.zip
llvm-62ff9ac4c68f48c089528105259c68943ab176de.tar.gz
llvm-62ff9ac4c68f48c089528105259c68943ab176de.tar.bz2
[OpenMP] Use Clang resource dir only in bootstrapping build (#156018)
In an LLVM_ENABLE_PROJECTS=openmp build, the LLVM build tree in which just-built Clang is available, but in contrast to an LLVM_ENABLE_RUNTIMES=openmp build, is not the compiler that openmp is built with (CMAKE_CXX_COMPILER). The latter compiler (which might also be gcc) will not look into the resource directory of just-built Clang, where the OpenMP headers are installed. There may not even be a just-built Clang without LLVM_ENABLE_PROJECTS=clang. We cannot add the OpenMP header output directory to the search path which also include's Clang's internal headers that will conflict with CMAKE_CXX_COMPILER's internal headers. The only choice left is to use what the OpenMP standalone build does: Use CMAKE_CURRENT_BINARY_DIR which is added unconditionally to the header search path to compile openmp itself.
Diffstat (limited to 'clang/lib/AST/ByteCode/Compiler.cpp')
0 files changed, 0 insertions, 0 deletions