Skip to content

Commit 662073e

Browse files
authored
Merge pull request swiftlang#19489 from compnerd/debug
2 parents ea70b2e + dd6a6d3 commit 662073e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmake/modules/AddSwift.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,8 +228,8 @@ function(_add_variant_c_compile_flags)
228228
# -D_MD or D_MDd either, as CMake does this automatically.
229229
if(NOT "${CMAKE_C_COMPILER_ID}" STREQUAL "MSVC")
230230
list(APPEND result -Xclang;--dependent-lib=oldnames)
231-
# TODO(compnerd) handle /MT, /MTd, /MD, /MDd
232-
if("${CMAKE_BUILD_TYPE}" STREQUAL "DEBUG")
231+
# TODO(compnerd) handle /MT, /MTd
232+
if("${CFLAGS_BUILD_TYPE}" STREQUAL "Debug")
233233
list(APPEND result "-D_MDd")
234234
list(APPEND result -Xclang;--dependent-lib=msvcrtd)
235235
else()

0 commit comments

Comments
 (0)