Skip to content

Commit d9d0825

Browse files
committed
CMake: build target libraries together with the stdlib
This avoids building swiftRemoteMirror for all targets by default.
1 parent 92c3476 commit d9d0825

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
@@ -694,7 +694,7 @@ function(_add_swift_library_single target name)
694694

695695
# Don't build standard libraries by default. We will enable building
696696
# standard libraries that the user requested; the rest can be built on-demand.
697-
if(SWIFTLIB_SINGLE_IS_STDLIB)
697+
if(SWIFTLIB_SINGLE_TARGET_LIBRARY)
698698
foreach(t "${target}" ${target_static})
699699
set_target_properties(${t} PROPERTIES EXCLUDE_FROM_ALL TRUE)
700700
endforeach()
@@ -1273,7 +1273,7 @@ function(add_swift_library name)
12731273

12741274
# Add Swift standard library targets as dependencies to the top-level
12751275
# convenience target.
1276-
if(SWIFTLIB_IS_STDLIB)
1276+
if(SWIFTLIB_TARGET_LIBRARY)
12771277
foreach(arch ${SWIFT_SDK_${sdk}_ARCHITECTURES})
12781278
set(VARIANT_SUFFIX "-${SWIFT_SDK_${sdk}_LIB_SUBDIR}-${arch}")
12791279
if(TARGET "swift-stdlib${VARIANT_SUFFIX}" AND TARGET "swift-test-stdlib${VARIANT_SUFFIX}")

0 commit comments

Comments
 (0)