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