File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed
branches/tensorflow-next/cmake/modules Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -1461,4 +1461,4 @@ refs/heads/master-rebranch: 86e95c23aa0d37f24ec138b7853146c1cead2e40
1461
1461
refs/heads/rdar-53901732: 9bd06af3284e18a109cdbf9aa59d833b24eeca7b
1462
1462
refs/heads/revert-26776-subst-always-returns-a-type: 1b8e18fdd391903a348970a4c848995d4cdd789c
1463
1463
refs/heads/tensorflow-merge: 8b854f62f80d4476cb383d43c4aac2001dde3cec
1464
- refs/heads/tensorflow-next: 1c5aece0c5caa776d7e1d0b702250bdf4b66e97f
1464
+ refs/heads/tensorflow-next: b4ec99bc6a9305808ecc2fa6b1c5ac6a99385a83
Original file line number Diff line number Diff line change @@ -1914,6 +1914,20 @@ function(add_swift_target_library name)
1914
1914
GYB_SOURCES ${SWIFTLIB_GYB_SOURCES}
1915
1915
)
1916
1916
1917
+ if (sdk STREQUAL WINDOWS )
1918
+ if (SWIFT_COMPILER_IS_MSVC_LIKE )
1919
+ if (SWIFT_STDLIB_MSVC_RUNTIME_LIBRARY MATCHES MultiThreadedDebugDLL )
1920
+ target_compile_options (${VARIANT_NAME} PRIVATE /MDd /D_DLL /D_DEBUG )
1921
+ elseif (SWIFT_STDLIB_MSVC_RUNTIME_LIBRARY MATCHES MultiThreadedDebug )
1922
+ target_compile_options (${VARIANT_NAME} PRIVATE /MTd /U_DLL /D_DEBUG )
1923
+ elseif (SWIFT_STDLIB_MSVC_RUNTIME_LIBRARY MATCHES MultiThreadedDLL )
1924
+ target_compile_options (${VARIANT_NAME} PRIVATE /MD /D_DLL /U_DEBUG )
1925
+ elseif (SWIFT_STDLIB_MSVC_RUNTIME_LIBRARY MATCHES MultiThreaded )
1926
+ target_compile_options (${VARIANT_NAME} PRIVATE /MT /U_DLL /U_DEBUG )
1927
+ endif ()
1928
+ endif ()
1929
+ endif ()
1930
+
1917
1931
if (NOT SWIFTLIB_OBJECT_LIBRARY )
1918
1932
# Add dependencies on the (not-yet-created) custom lipo target.
1919
1933
foreach (DEP ${SWIFTLIB_LINK_LIBRARIES} )
You can’t perform that action at this time.
0 commit comments