File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 5454 cmake -B build -G Ninja \
5555 -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \
5656 -DCMAKE_TOOLCHAIN_FILE=cmake/toolchain.cmake \
57+ -DCMAKE_C_COMPILER=clang \
58+ -DCMAKE_CXX_COMPILER=clang++ \
5759 -DCLICE_ENABLE_TEST=ON \
5860 -DCLICE_CI_ENVIRONMENT=ON
5961 cmake --build build
Original file line number Diff line number Diff line change @@ -86,7 +86,8 @@ if(WIN32)
8686 set (CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreadedDLL" )
8787 target_link_options (clice_options INTERFACE
8888 -fuse-ld=lld-link
89- -Wl,/OPT:REF,/OPT:NOICF
89+ -Wl,/OPT:REF
90+ #,/OPT:NOICF
9091 )
9192elseif (APPLE )
9293 target_link_options (clice_options INTERFACE
@@ -101,7 +102,8 @@ elseif(CMAKE_SYSTEM_NAME STREQUAL "Linux")
101102 )
102103endif ()
103104
104- if (MSVC )
105+ if (MSVC OR (CMAKE_CXX_COMPILER_ID MATCHES "Clang" AND
106+ CMAKE_CXX_COMPILER_FRONTEND_VARIANT STREQUAL "MSVC" ))
105107 target_compile_options (clice_options INTERFACE
106108 /GR-
107109 /EHsc-
You can’t perform that action at this time.
0 commit comments