Skip to content

Commit 4c271c4

Browse files
authored
Merge pull request #895 from qmfrederik/fixes/windows-clang
Windows: Support building with Clang using the GNU-like front end
2 parents ed4c2a1 + 4a345d0 commit 4c271c4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ if(DISPATCH_ENABLE_ASSERTS)
111111
DISPATCH_DEBUG=1)
112112
endif()
113113

114-
if("${CMAKE_C_SIMULATE_ID}" STREQUAL "MSVC")
114+
if("${CMAKE_C_COMPILER_FRONTEND_VARIANT}" STREQUAL "MSVC")
115115
target_compile_options(dispatch PRIVATE /EHs-c-)
116116
target_compile_options(dispatch PRIVATE /W3)
117117
else()

tests/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ function(add_unit_test name)
8383
target_include_directories(${name}
8484
SYSTEM BEFORE PRIVATE
8585
"${BlocksRuntime_INCLUDE_DIR}")
86-
if("${CMAKE_C_SIMULATE_ID}" STREQUAL "MSVC")
86+
if("${CMAKE_C_COMPILER_FRONTEND_VARIANT}" STREQUAL "MSVC")
8787
target_compile_options(${name} PRIVATE -Xclang -fblocks)
8888
target_compile_options(${name} PRIVATE /W3 -Wno-deprecated-declarations)
8989
else()

0 commit comments

Comments
 (0)