Skip to content

Commit d33b400

Browse files
committed
Emit CMake FATAL_ERROR instead of warning if the C++ compiler is unsupported
1 parent f3630e2 commit d33b400

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/CompilerFlags.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ function(set_default_compile_options target)
233233
target_compile_options(${target} PRIVATE /fsanitize=address)
234234
target_link_options(${target} PRIVATE /INCREMENTAL:NO)
235235
else()
236-
message(WARNING "Not enabling sanitizers: unsupported C++ compiler")
236+
message(FATAL_ERROR "SLANG_ENABLE_ASAN: unsupported C++ compiler")
237237
endif()
238238
endif()
239239

0 commit comments

Comments
 (0)