Skip to content

Commit bfe5cbd

Browse files
committed
clang-cl.exe does not support /analyze flag
Disable setting the `/analyze` flag on Windows if the compiler ID does not equal MSVC, this fixes builds using the `clang-cl.exe` frontend which does not support this flag.
1 parent 3e4f65f commit bfe5cbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/helpers.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ function(add_umf_target_compile_options name)
258258
${name}
259259
PRIVATE /MD$<$<CONFIG:Debug>:d>
260260
$<$<CONFIG:Release>:/sdl>
261-
/analyze
261+
$<$<CXX_COMPILER_ID:MSVC>:/analyze>
262262
/DYNAMICBASE
263263
/W4
264264
/Gy

0 commit comments

Comments
 (0)