diff --git a/fetch-sources.sh b/fetch-sources.sh index 716e3d6..bd64362 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 for Swift 5.9/5.10" cd ../swift-corelibs-foundation patch -d . -p1 <$SRC_ROOT/patches/0002-Foundation-5.9-check-for-strlcpy-strlcat.patch fi