[PATCH] D101265: [OpenMP][CMake] Use in-project clang as CUDA->IR compiler.

Michael Kruse via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 30 10:37:22 PDT 2021


Meinersbur updated this revision to Diff 341972.
Meinersbur added a comment.

- Add file-level dependency to ensure most recent clang ("Joachim's suggestion")
- Use $<TARGET_FILE:clang> for just-built clang. The reason is that otherwise if the user specifies LIBOMPTARGET_NVPTX_CUDA_COMPILER=clang (could mean the clang in $PATH; we cannot avoid that CMake rewrites it to in-tree clang), CMake would error out saying that a target "clang" does not exist when adding the dependency.
- Add output message to notify user which clang is used. To make it clear to users that it might not be the host compiler determined by CMake.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D101265/new/

https://reviews.llvm.org/D101265

Files:
  openmp/README.rst
  openmp/libomptarget/deviceRTLs/nvptx/CMakeLists.txt

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D101265.341972.patch
Type: text/x-patch
Size: 5000 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210430/435506ab/attachment.bin>


More information about the llvm-commits mailing list