Skip to content

Commit ef5040c

Browse files
committed
build: fix clang-cl exception flags
1 parent 4ac77b7 commit ef5040c

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)