Skip to content

Commit b94ea98

Browse files
committed
build: remove SWIFT_BUILD_STDLIB check (NFC)
The `add_swift_target_executable` is used in a single case, where it is already being built in a standard library only build. This removes the unnecessary condition in the build path.
1 parent fa15449 commit b94ea98

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

stdlib/cmake/modules/AddSwiftStdlib.cmake

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,6 @@ function(add_swift_target_executable name)
2424
# All Swift executables depend on the swiftSwiftOnoneSupport library.
2525
list(APPEND SWIFTEXE_TARGET_DEPENDS swiftSwiftOnoneSupport)
2626

27-
if(NOT "${SWIFT_BUILD_STDLIB}")
28-
list(REMOVE_ITEM SWIFTEXE_TARGET_LINK_LIBRARIES
29-
swiftCore)
30-
endif()
31-
3227
foreach(sdk ${SWIFT_SDKS})
3328
foreach(arch ${SWIFT_SDK_${sdk}_ARCHITECTURES})
3429
set(VARIANT_SUFFIX "-${SWIFT_SDK_${sdk}_LIB_SUBDIR}-${arch}")

0 commit comments

Comments
 (0)