================
@@ -24,7 +24,21 @@ if(NOT CMAKE_CLC_COMPILER)
message(FATAL_ERROR "The CLC language requires Clang. ${reason}.")
endif()
- set(CMAKE_CLC_COMPILER "${CMAKE_C_COMPILER}" CACHE FILEPATH "CLC compiler")
+ # Use the regular clang driver if the C compiler is clang-cl.
+ if(CMAKE_C_COMPILER_ID STREQUAL "Clang" AND
CMAKE_C_COMPILER_FRONTEND_VARIANT STREQUAL "MSVC")
----------------
arsenm wrote:
This build shouldn't be using the C compiler. Ideally there would be a language
definition for OpenCL which defines the CMAKE_OPENCL_COMPILER_* and other
associated variables. I'm not sure what windows or clang-cl has to do with
anything. There aren't any host side components built anymore here?
https://github.com/llvm/llvm-project/pull/186717
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits