We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 80ce2c3 + f441f08 commit 7c65568Copy full SHA for 7c65568
cmake/modules/AddSwift.cmake
@@ -821,10 +821,10 @@ function(_add_swift_library_single target name)
821
endif()
822
list(APPEND SWIFTLIB_SINGLE_SWIFT_COMPILE_FLAGS -Xfrontend;-autolink-library;-Xfrontend;oldnames)
823
# TODO(compnerd) handle /MT and /MTd
824
- if("${CMAKE_BUILD_TYPE}" STREQUAL "RELEASE")
825
- list(APPEND SWIFTLIB_SINGLE_SWIFT_COMPILE_FLAGS -Xfrontend;-autolink-library;-Xfrontend;msvcrt)
826
- else()
+ if(CMAKE_BUILD_TYPE MATCHES Debug)
827
list(APPEND SWIFTLIB_SINGLE_SWIFT_COMPILE_FLAGS -Xfrontend;-autolink-library;-Xfrontend;msvcrtd)
+ else()
+ list(APPEND SWIFTLIB_SINGLE_SWIFT_COMPILE_FLAGS -Xfrontend;-autolink-library;-Xfrontend;msvcrt)
828
829
830
0 commit comments