]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-127434: Fix iOS `xcrun --sdk` clang/ar scripts to allow arguments with spaces...
authorFeodor Fitsner <feodor@appveyor.com>
Thu, 5 Dec 2024 03:00:20 +0000 (19:00 -0800)
committerGitHub <noreply@github.com>
Thu, 5 Dec 2024 03:00:20 +0000 (11:00 +0800)
Added shell escaping to ensure iOS compiler shims can accept arguments with spaces.

13 files changed:
Misc/NEWS.d/next/Core_and_Builtins/2024-12-04-09-52-08.gh-issue-127434.RjkGT_.rst [new file with mode: 0644]
iOS/Resources/bin/arm64-apple-ios-ar
iOS/Resources/bin/arm64-apple-ios-clang
iOS/Resources/bin/arm64-apple-ios-clang++
iOS/Resources/bin/arm64-apple-ios-cpp
iOS/Resources/bin/arm64-apple-ios-simulator-ar
iOS/Resources/bin/arm64-apple-ios-simulator-clang
iOS/Resources/bin/arm64-apple-ios-simulator-clang++
iOS/Resources/bin/arm64-apple-ios-simulator-cpp
iOS/Resources/bin/x86_64-apple-ios-simulator-ar
iOS/Resources/bin/x86_64-apple-ios-simulator-clang
iOS/Resources/bin/x86_64-apple-ios-simulator-clang++
iOS/Resources/bin/x86_64-apple-ios-simulator-cpp

diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2024-12-04-09-52-08.gh-issue-127434.RjkGT_.rst b/Misc/NEWS.d/next/Core_and_Builtins/2024-12-04-09-52-08.gh-issue-127434.RjkGT_.rst
new file mode 100644 (file)
index 0000000..08b27a7
--- /dev/null
@@ -0,0 +1 @@
+The iOS compiler shims can now accept arguments with spaces.
index 8122332b9c1de0438d4bb2617a6a7ef806a4bfa5..3cf3eb218741fae15fbd02ceff1eb892b18f05a8 100755 (executable)
@@ -1,2 +1,2 @@
 #!/bin/sh
-xcrun --sdk iphoneos${IOS_SDK_VERSION} ar $@
+xcrun --sdk iphoneos${IOS_SDK_VERSION} ar "$@"
index 4d525751eba798cbd8d700ed02cf4b42a8fcbc71..c39519cd1f8c9429540fd955dede20b03bd5deff 100755 (executable)
@@ -1,2 +1,2 @@
 #!/bin/sh
-xcrun --sdk iphoneos${IOS_SDK_VERSION} clang -target arm64-apple-ios $@
+xcrun --sdk iphoneos${IOS_SDK_VERSION} clang -target arm64-apple-ios "$@"
index f24bec11268f7ea445b30525ca2fe8ed3241c648..d9b12925f384b9d3080cf9c485f5e8bf206eaa86 100755 (executable)
@@ -1,2 +1,2 @@
 #!/bin/sh
-xcrun --sdk iphoneos${IOS_SDK_VERSION} clang++ -target arm64-apple-ios $@
+xcrun --sdk iphoneos${IOS_SDK_VERSION} clang++ -target arm64-apple-ios "$@"
index 891bb25bb4318c066817e0f147dbbd96ea0bbfd9..24da23d3448ae0f406843db23a0a1fb159d6b0bd 100755 (executable)
@@ -1,2 +1,2 @@
 #!/bin/sh
-xcrun --sdk iphoneos${IOS_SDK_VERSION} clang -target arm64-apple-ios -E $@
+xcrun --sdk iphoneos${IOS_SDK_VERSION} clang -target arm64-apple-ios -E "$@"
index 74ed3bc6df1c2bf2dc62827991b504fdf41a9978..b836b6db9025bb8e509730f6b4fec925dad8d6fd 100755 (executable)
@@ -1,2 +1,2 @@
 #!/bin/sh
-xcrun --sdk iphonesimulator${IOS_SDK_VERSION} ar $@
+xcrun --sdk iphonesimulator${IOS_SDK_VERSION} ar "$@"
index 32574cad2844415350ed6641e910b95d1138806f..92e8d853d6ebc30586025319d1ee40a4248a71d3 100755 (executable)
@@ -1,2 +1,2 @@
 #!/bin/sh
-xcrun --sdk iphonesimulator${IOS_SDK_VERSION} clang -target arm64-apple-ios-simulator $@
+xcrun --sdk iphonesimulator${IOS_SDK_VERSION} clang -target arm64-apple-ios-simulator "$@"
index ef37d05b5129592265d11f83ddff1a15a7effa34..076469cc70cf98533eaad87b78dbeaa4bbfa2c10 100755 (executable)
@@ -1,2 +1,2 @@
 #!/bin/sh
-xcrun --sdk iphonesimulator${IOS_SDK_VERSION} clang++ -target arm64-apple-ios-simulator $@
+xcrun --sdk iphonesimulator${IOS_SDK_VERSION} clang++ -target arm64-apple-ios-simulator "$@"
index 6aaf6fbe188c32682b4926a1b019cb588d064d08..c57f28cee5bcfecda86dd53e1b9232e13c25e7e2 100755 (executable)
@@ -1,2 +1,2 @@
 #!/bin/sh
-xcrun --sdk iphonesimulator${IOS_SDK_VERSION} clang -target arm64-apple-ios-simulator -E $@
+xcrun --sdk iphonesimulator${IOS_SDK_VERSION} clang -target arm64-apple-ios-simulator -E "$@"
index 74ed3bc6df1c2bf2dc62827991b504fdf41a9978..b836b6db9025bb8e509730f6b4fec925dad8d6fd 100755 (executable)
@@ -1,2 +1,2 @@
 #!/bin/sh
-xcrun --sdk iphonesimulator${IOS_SDK_VERSION} ar $@
+xcrun --sdk iphonesimulator${IOS_SDK_VERSION} ar "$@"
index bcbe91f6061e16053c0d831afc43f00710b6283e..17cbe0c8a1e213b7ab13b106f5023769d3c9087f 100755 (executable)
@@ -1,2 +1,2 @@
 #!/bin/sh
-xcrun --sdk iphonesimulator${IOS_SDK_VERSION} clang -target x86_64-apple-ios-simulator $@
+xcrun --sdk iphonesimulator${IOS_SDK_VERSION} clang -target x86_64-apple-ios-simulator "$@"
index 86f03ea32bc2fd9bdd70ab7f9fe6537954ce9a0e..565d47b24c214b228e04725b0b4e8e849d73da58 100755 (executable)
@@ -1,2 +1,2 @@
 #!/bin/sh
-xcrun --sdk iphonesimulator${IOS_SDK_VERSION} clang++ -target x86_64-apple-ios-simulator $@
+xcrun --sdk iphonesimulator${IOS_SDK_VERSION} clang++ -target x86_64-apple-ios-simulator "$@"
index e6a42d9b85dec7d4d2fbf575b7681f1b5b430b31..63fc8e8de2d38daa24f534ba3ab206467ac1a3e7 100755 (executable)
@@ -1,2 +1,2 @@
 #!/bin/sh
-xcrun --sdk iphonesimulator${IOS_SDK_VERSION} clang -target x86_64-apple-ios-simulator -E $@
+xcrun --sdk iphonesimulator${IOS_SDK_VERSION} clang -target x86_64-apple-ios-simulator -E "$@"