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

Joachim Protze via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Thu Apr 29 03:44:45 PDT 2021


protze.joachim added inline comments.


================
Comment at: llvm/CMakeLists.txt:971
 
+add_subdirectory(projects)
+
----------------
Are you sure that this doesn't break cmake dependencies for compiler-rt?


================
Comment at: openmp/libomptarget/deviceRTLs/nvptx/CMakeLists.txt:35
+  # Compile the deviceRTL with the clang that is built in the project.
+  set(cuda_compiler clang)
 elseif(${CMAKE_C_COMPILER_ID} STREQUAL "Clang")
----------------
I think, you want to have:

```
set(cuda_compiler $<TARGET_FILE:clang>)
```


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D101265



More information about the Openmp-commits mailing list