Skip to content

Commit cd2bb3d

Browse files
authored
Merge pull request #73474 from kateinoigakukun/yt/fix-non-static-only-static-stdlib
[Build] Repair the build for non-static-only static stdlib builds
2 parents ade04a7 + 7e3c708 commit cd2bb3d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

stdlib/cmake/modules/AddSwiftStdlib.cmake

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2492,10 +2492,10 @@ function(add_swift_target_library name)
24922492
"${SWIFTLIB_DIR}/${library_subdir}/${CMAKE_SHARED_LIBRARY_PREFIX}${name}${CMAKE_SHARED_LIBRARY_SUFFIX}")
24932493
endif()
24942494
else()
2495-
if(SWIFTLIB_INSTALL_WITH_SHARED)
2496-
set(lib_dir "${SWIFTLIB_DIR}")
2497-
else()
2495+
if(SWIFT_SDK_${sdk}_STATIC_ONLY)
24982496
set(lib_dir "${SWIFTSTATICLIB_DIR}")
2497+
else()
2498+
set(lib_dir "${SWIFTLIB_DIR}")
24992499
endif()
25002500

25012501
if("${sdk}" STREQUAL "WINDOWS")

0 commit comments

Comments
 (0)