mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[build] Change Foundation macro checks because of #83422
I missed that `build-script` passes back `false` instead, so use the `true_false` function for broader checking.
This commit is contained in:
@@ -2351,7 +2351,7 @@ for host in "${ALL_HOSTS[@]}"; do
|
||||
continue
|
||||
fi
|
||||
|
||||
if [[ "${CROSS_COMPILE_BUILD_SWIFT_TOOLS}" == "0" ]]; then
|
||||
if [[ "$(true_false ${CROSS_COMPILE_BUILD_SWIFT_TOOLS})" == "FALSE" ]]; then
|
||||
echo "Skipping building Foundation Macros for ${host}, because the host tools are not being built"
|
||||
continue
|
||||
fi
|
||||
@@ -2940,7 +2940,7 @@ for host in "${ALL_HOSTS[@]}"; do
|
||||
continue
|
||||
fi
|
||||
|
||||
if [[ "${CROSS_COMPILE_BUILD_SWIFT_TOOLS}" == "0" && "${product}" == "foundation_macros" ]]; then
|
||||
if [[ "$(true_false ${CROSS_COMPILE_BUILD_SWIFT_TOOLS})" == "FALSE" && "${product}" == "foundation_macros" ]]; then
|
||||
echo "Skipping installing Foundation Macros for ${host}, because the host tools are not being built"
|
||||
continue
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user