Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-135968: Add iOS binary stubs for strip#135970

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
freakboy3742 merged 2 commits intopython:mainfromfreakboy3742:ios-strip
Jun 27, 2025

Conversation

freakboy3742
Copy link
Contributor

@freakboy3742freakboy3742 commentedJun 26, 2025
edited by bedevere-appbot
Loading

Adds iOS binary stubs for strip.

This is something that came up in the development of a port ofnumpy; Meson looks forstrip by default, and raises a warning if it can't be found. It's easy enough to provide the stub to avoid the warning.

@@ -0,0 +1,2 @@
#!/bin/sh
xcrun --sdk iphonesimulator${IOS_SDK_VERSION} strip -arch arm64"$@"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

The return value from xcrun / the underlying command isn't returned to the caller for these as written. Either-e option (errexit) to/bin/sh and/or usingexec to run the subcommand should resolve; not sure which is best practice.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

@cmaloney Are you sure about that? From my testing:

$ iOS/Resources/bin/arm64-apple-ios-simulator-clang -c hello.c -o hello$ echo $?0$ iOS/Resources/bin/arm64-apple-ios-simulator-clangclang: error: no input files$ echo $?1

Or am I missing something here?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

set -e or equivalent would only be needed if there were another command following thexcrun, no? Otherwise, the stub script will exit with the status of the last executed command, that is, the command executed byxcrun.

freakboy3742 and cmaloney reacted with thumbs up emoji
Copy link
Member

@ned-deilyned-deily left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

LGTM

@freakboy3742freakboy3742 merged commit0c6c09b intopython:mainJun 27, 2025
52 checks passed
@freakboy3742freakboy3742 deleted the ios-strip branchJune 27, 2025 04:58
@miss-islington-app
Copy link

Thanks@freakboy3742 for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14.
🐍🍒⛏🤖 I'm not a witch! I'm not a witch!

miss-islington pushed a commit to miss-islington/cpython that referenced this pull requestJun 27, 2025
Adds iOS binary stubs for invoking `strip`(cherry picked from commit0c6c09b)Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull requestJun 27, 2025
Adds iOS binary stubs for invoking `strip`(cherry picked from commit0c6c09b)Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
@bedevere-app
Copy link

GH-136014 is a backport of this pull request to the3.14 branch.

@bedevere-appbedevere-appbot removed the needs backport to 3.14bugs and security fixes labelJun 27, 2025
@bedevere-app
Copy link

GH-136015 is a backport of this pull request to the3.13 branch.

@bedevere-appbedevere-appbot removed the needs backport to 3.13bugs and security fixes labelJun 27, 2025
freakboy3742 added a commit that referenced this pull requestJun 27, 2025
Adds iOS binary stubs for invoking `strip`(cherry picked from commit0c6c09b)Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
freakboy3742 added a commit that referenced this pull requestJun 27, 2025
Adds iOS binary stubs for invoking `strip`(cherry picked from commit0c6c09b)Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@cmaloneycmaloneycmaloney left review comments

@ned-deilyned-deilyned-deily approved these changes

Assignees
No one assigned
Labels
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@freakboy3742@cmaloney@ned-deily

[8]ページ先頭

©2009-2025 Movatter.jp