From ed3cf6b0aa80d244aca442f609bcd9d242e5575a Mon Sep 17 00:00:00 2001 From: "Jesse L. Zamora" Date: Sat, 8 Mar 2025 19:33:30 -0500 Subject: [PATCH] Apply 5.9 Foundation patch to Swift 5.10 as well --- fetch-sources.sh | 6 +++--- ...atch => 0002-Foundation-check-for-strlcpy-strlcat.patch} | 0 2 files changed, 3 insertions(+), 3 deletions(-) rename patches/{0002-Foundation-5.9-check-for-strlcpy-strlcat.patch => 0002-Foundation-check-for-strlcpy-strlcat.patch} (100%) diff --git a/fetch-sources.sh b/fetch-sources.sh index 716e3d6..86fd313 100755 --- a/fetch-sources.sh +++ b/fetch-sources.sh @@ -69,8 +69,8 @@ patch -d . -p1 <$SRC_ROOT/patches/0001-Swift-fix-find-libstdc++-for-cxx-interop. patch -d . -p1 <$SRC_ROOT/patches/0002-Add-arm-to-float16support-for-missing-symbol.patch # Only applies to Swift 5.9 -if [[ $SWIFT_VERSION == *"5.9"* ]]; then - echo "Apply Foundation strlcpy/strlcat patch for Swift 5.9" +if [[ $SWIFT_VERSION == *"5.9"* ]] || [[ $SWIFT_VERSION == *"5.10"* ]]; then + echo "Apply Foundation strlcpy/strlcat patch" cd ../swift-corelibs-foundation - patch -d . -p1 <$SRC_ROOT/patches/0002-Foundation-5.9-check-for-strlcpy-strlcat.patch + patch -d . -p1 <$SRC_ROOT/patches/0002-Foundation-check-for-strlcpy-strlcat.patch fi diff --git a/patches/0002-Foundation-5.9-check-for-strlcpy-strlcat.patch b/patches/0002-Foundation-check-for-strlcpy-strlcat.patch similarity index 100% rename from patches/0002-Foundation-5.9-check-for-strlcpy-strlcat.patch rename to patches/0002-Foundation-check-for-strlcpy-strlcat.patch