Skip to content

Commit 039bf04

Browse files
committed
[win] Fix compilation of clang::driver::options::OPT_ for CUDA
1 parent 6aa8425 commit 039bf04

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,8 @@ endif ()
380380
# Fixes "C++ exception handler used, but unwind semantics are not enabled" warning Windows
381381
if (MSVC)
382382
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /EHsc")
383+
# Required for clang::driver::options::OPT_ see https://github.com/llvm/llvm-project/issues/86028
384+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Zc:preprocessor")
383385
endif ()
384386

385387
if (APPLE)

0 commit comments

Comments
 (0)