Skip to content

Commit b8f1ab9

Browse files
adierkingktopley-apple
authored andcommitted
build: fix clang-cl exception flags
Signed-off-by: Kim Topley <[email protected]>
1 parent e90d769 commit b8f1ab9

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/CMakeLists.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,7 @@ if(WIN32)
144144
PRIVATE
145145
_CRT_NONSTDC_NO_WARNINGS)
146146
endif()
147-
if("${CMAKE_C_SIMULATE_ID}" STREQUAL "MSVC")
148-
target_compile_options(dispatch PRIVATE /EHsc-)
149-
else()
147+
if(NOT "${CMAKE_C_SIMULATE_ID}" STREQUAL "MSVC")
150148
target_compile_options(dispatch PRIVATE -fno-exceptions)
151149
endif()
152150
if(DISPATCH_ENABLE_ASSERTS)

0 commit comments

Comments
 (0)