aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/ModuleBuilder.cpp
diff options
context:
space:
mode:
authorMichael Kruse <llvm-project@meinersbur.de>2021-04-27 16:27:32 -0500
committerMichael Kruse <llvm-project@meinersbur.de>2021-04-27 16:27:40 -0500
commit3244a8b5366dcd7a840963a6a2ae2c7ffe50de2c (patch)
treecc34cfdbde043a0d7e2017da7dedb94ef8ae2aff /clang/lib/CodeGen/ModuleBuilder.cpp
parent87fc97169e7901dfe56ca0da0d92da0c02d2ef48 (diff)
downloadllvm-3244a8b5366dcd7a840963a6a2ae2c7ffe50de2c.zip
llvm-3244a8b5366dcd7a840963a6a2ae2c7ffe50de2c.tar.gz
llvm-3244a8b5366dcd7a840963a6a2ae2c7ffe50de2c.tar.bz2
[OpenMP][CMake] Pass --cuda-path to regression tests.
The OpenMP runtime can be compiled using a CUDA installed at non-default location with the -DCUDA_TOOLKIT_ROOT_DIR setting. However, check-openmp will fail afterwards because Clang needs to know where to find the CUDA headers. Fix by passing -cuda-path to Clang using the value of CUDA_TOOLKIT_ROOT_DIR which has been determined by CMake. Also set LD_LIBRARY_PATH such that it can find the cuda runtime when executing. This will ensure that the regression test do not depend on the current environment, but use the environment it was configured for. Reviewed By: tianshilei1992 Differential Revision: https://reviews.llvm.org/D101266
Diffstat (limited to 'clang/lib/CodeGen/ModuleBuilder.cpp')
0 files changed, 0 insertions, 0 deletions