Skip to content

Commit cf54434

Browse files
committed
[lto][build-script-impl] SWIFT_PARALLEL_LINK_JOBS should always be set even if we do not need to set the c standard computed defaults due to a cmake bug.
1 parent e4ddee4 commit cf54434

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

utils/build-script-impl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,9 +551,11 @@ function set_deployment_target_based_options() {
551551
"${swift_cmake_options[@]}"
552552
"-DCMAKE_C_STANDARD_COMPUTED_DEFAULT=AppleClang"
553553
"-DCMAKE_CXX_STANDARD_COMPUTED_DEFAULT=AppleClang"
554-
"-DSWIFT_PARALLEL_LINK_JOBS=$(num_swift_parallel_lto_link_jobs)"
555554
)
556555
fi
556+
swift_cmake_options+=(
557+
"-DSWIFT_PARALLEL_LINK_JOBS=$(num_swift_parallel_lto_link_jobs)"
558+
)
557559
fi
558560

559561
swift_cmake_options=(

0 commit comments

Comments
 (0)