File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -528,15 +528,13 @@ function set_deployment_target_based_options() {
528
528
)
529
529
if [[ $( true_false " ${LLVM_ENABLE_LTO} " ) = " TRUE" ]]; then
530
530
if [[ $( cmake_needs_to_specify_standard_computed_defaults) = " TRUE" ]]; then
531
- llvm_cmake_options=(
532
- " ${llvm_cmake_options[@]} "
531
+ llvm_cmake_options+=(
533
532
" -DCMAKE_C_STANDARD_COMPUTED_DEFAULT=AppleClang"
534
533
" -DCMAKE_CXX_STANDARD_COMPUTED_DEFAULT=AppleClang"
535
534
)
536
535
fi
537
536
538
- llvm_cmake_options=(
539
- " ${llvm_cmake_options[@]} "
537
+ llvm_cmake_options+=(
540
538
" -DCMAKE_C_FLAGS=-O2 -flto -gline-tables-only -fno-stack-protector "
541
539
" -DCMAKE_CXX_FLAGS=-O2 -flto -gline-tables-only -fno-stack-protector "
542
540
" -DCMAKE_C_FLAGS_RELWITHDEBINFO=-O2 -flto -gline-tables-only -fno-stack-protector "
@@ -547,8 +545,7 @@ function set_deployment_target_based_options() {
547
545
548
546
if [[ $( true_false " ${SWIFT_ENABLE_LTO} " ) = " TRUE" ]]; then
549
547
if [[ $( cmake_needs_to_specify_standard_computed_defaults) = " TRUE" ]]; then
550
- swift_cmake_options=(
551
- " ${swift_cmake_options[@]} "
548
+ swift_cmake_options+=(
552
549
" -DCMAKE_C_STANDARD_COMPUTED_DEFAULT=AppleClang"
553
550
" -DCMAKE_CXX_STANDARD_COMPUTED_DEFAULT=AppleClang"
554
551
)
@@ -558,8 +555,7 @@ function set_deployment_target_based_options() {
558
555
)
559
556
fi
560
557
561
- swift_cmake_options=(
562
- " ${swift_cmake_options[@]} "
558
+ swift_cmake_options+=(
563
559
-DSWIFT_DARWIN_DEPLOYMENT_VERSION_OSX=" ${DARWIN_DEPLOYMENT_VERSION_OSX} "
564
560
-DSWIFT_DARWIN_DEPLOYMENT_VERSION_IOS=" ${DARWIN_DEPLOYMENT_VERSION_IOS} "
565
561
-DSWIFT_DARWIN_DEPLOYMENT_VERSION_TVOS=" ${DARWIN_DEPLOYMENT_VERSION_TVOS} "
You can’t perform that action at this time.
0 commit comments