From e58030f401837a683dad67515702a053760ab28c Mon Sep 17 00:00:00 2001 From: Finagolfin Date: Wed, 11 Jun 2025 01:18:22 +0530 Subject: [PATCH] [build] Switch over to new `--cross-compile-build-swift-tools` flag when cross-compiling Foundation macros Follow-on to #38441, missed this there. --- utils/build-script-impl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/build-script-impl b/utils/build-script-impl index 890fc5e141990..a9bdd7f884236 100755 --- a/utils/build-script-impl +++ b/utils/build-script-impl @@ -2331,7 +2331,7 @@ for host in "${ALL_HOSTS[@]}"; do continue fi - if [[ "${BUILD_SWIFT_TOOLS}" == "0" ]]; then + if [[ "${CROSS_COMPILE_BUILD_SWIFT_TOOLS}" == "0" ]]; then echo "Skipping building Foundation Macros for ${host}, because the host tools are not being built" continue fi @@ -2920,7 +2920,7 @@ for host in "${ALL_HOSTS[@]}"; do continue fi - if [[ "${BUILD_SWIFT_TOOLS}" == "0" && "${product}" == "foundation_macros" ]]; then + if [[ "${CROSS_COMPILE_BUILD_SWIFT_TOOLS}" == "0" && "${product}" == "foundation_macros" ]]; then echo "Skipping installing Foundation Macros for ${host}, because the host tools are not being built" continue fi