build: spell `-fno-exceptions` for MSVC
We did not disable exceptions when building with cl, do so like we do
with the GCC style driver.
@@ -174,7 +174,9 @@ if(WIN32)
PRIVATE
_CRT_NONSTDC_NO_WARNINGS)
endif()
-if(NOT "${CMAKE_C_SIMULATE_ID}" STREQUAL "MSVC")
+if("${CMAKE_C_SIMULATE_ID}" STREQUAL "MSVC")
+ target_compile_options(dispatch PRIVATE /EHs-c-)
+else()
target_compile_options(dispatch PRIVATE -fno-exceptions)
endif()
if(DISPATCH_ENABLE_ASSERTS)
