-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pass objcopy args for stripping on OSX #135034
Conversation
@bors try |
This PR modifies cc @jieyouxu |
Pass objcopy args for stripping on OSX When `-Cstrip` was changed in rust-lang#131405 to use the bundled rust-objcopy instead of /usr/bin/strip on OSX, strip-like arguments were preserved. But strip and objcopy are, while being the same binary, different, they have different defaults depending on which binary they are. Notably, strip strips everything by default, and objcopy doesn't strip anything by default. Additionally, `-S` actually means `--strip-all`, so debuginfo stripped everything and symbols didn't strip anything. We now correctly pass `--strip-debug` and `--strip-all`. fixes rust-lang#135028 try-jobs: aarch64-apple
|
That is a possible alternative, but I would prefer to avoid changing bootstrap to ship it as llvm-strip, especially for something that's backported. Just changing the flags works fine. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, the changes LGTM with two nits. r=me if try job comes back green. I don't have access to a native macOS environment to try this locally though.
This comment has been minimized.
This comment has been minimized.
26309e5
to
75a5355
Compare
This PR modifies cc @jieyouxu |
@bors try |
⌛ Trying commit 75a5355 with merge efbd1f63fafc97e79d87330dba4f3d04396ecdf3... |
Pass objcopy args for stripping on OSX When `-Cstrip` was changed in rust-lang#131405 to use the bundled rust-objcopy instead of /usr/bin/strip on OSX, strip-like arguments were preserved. But strip and objcopy are, while being the same binary, different, they have different defaults depending on which binary they are. Notably, strip strips everything by default, and objcopy doesn't strip anything by default. Additionally, `-S` actually means `--strip-all`, so debuginfo stripped everything and symbols didn't strip anything. We now correctly pass `--strip-debug` and `--strip-all`. fixes rust-lang#135028 try-jobs: aarch64-apple try-jobs: dist-aarch64-apple
☀️ Try build successful - checks-actions |
@bors try |
Pass objcopy args for stripping on OSX When `-Cstrip` was changed in rust-lang#131405 to use the bundled rust-objcopy instead of /usr/bin/strip on OSX, strip-like arguments were preserved. But strip and objcopy are, while being the same binary, different, they have different defaults depending on which binary they are. Notably, strip strips everything by default, and objcopy doesn't strip anything by default. Additionally, `-S` actually means `--strip-all`, so debuginfo stripped everything and symbols didn't strip anything. We now correctly pass `--strip-debug` and `--strip-all`. fixes rust-lang#135028 try-job: aarch64-apple try-job: dist-aarch64-apple
This comment has been minimized.
This comment has been minimized.
💔 Test failed - checks-actions |
When `-Cstrip` was changed to use the bundled rust-objcopy instead of /usr/bin/strip on OSX, strip-like arguments were preserved. But strip and objcopy are, while being the same binary, different, they have different defaults depending on which binary they are. Notably, strip strips everything by default, and objcopy doesn't strip anything by default. Additionally, `-S` actually means `--strip-all`, so debuginfo stripped everything and symbols didn't strip anything. We now correctly pass `--strip-debug` and `--strip-all`.
75a5355
to
4da3aed
Compare
Pass objcopy args for stripping on OSX When `-Cstrip` was changed in rust-lang#131405 to use the bundled rust-objcopy instead of /usr/bin/strip on OSX, strip-like arguments were preserved. But strip and objcopy are, while being the same binary, different, they have different defaults depending on which binary they are. Notably, strip strips everything by default, and objcopy doesn't strip anything by default. Additionally, `-S` actually means `--strip-all`, so debuginfo stripped everything and symbols didn't strip anything. We now correctly pass `--strip-debug` and `--strip-all`. fixes rust-lang#135028 try-job: aarch64-apple try-job: dist-aarch64-apple
☀️ Try build successful - checks-actions |
@bors p=5 rollup=iffy (macos-specific strip, fixes a P-critical regression) |
@bors p=15 to jump ahead of rollups |
Pass objcopy args for stripping on OSX When `-Cstrip` was changed in rust-lang#131405 to use the bundled rust-objcopy instead of /usr/bin/strip on OSX, strip-like arguments were preserved. But strip and objcopy are, while being the same binary, different, they have different defaults depending on which binary they are. Notably, strip strips everything by default, and objcopy doesn't strip anything by default. Additionally, `-S` actually means `--strip-all`, so debuginfo stripped everything and symbols didn't strip anything. We now correctly pass `--strip-debug` and `--strip-all`. fixes rust-lang#135028 try-job: aarch64-apple try-job: dist-aarch64-apple
The job Click to see the possible cause of the failure (guessed by this bot)
|
💔 Test failed - checks-actions |
@bors retry get better at deleting files, my friend |
☀️ Test successful - checks-actions |
Finished benchmarking commit (3f43b1a): comparison URL. Overall result: no relevant changes - no action needed@rustbot label: -perf-regression Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)Results (primary -1.5%)This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesResults (secondary -7.4%)This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 762.379s -> 764.245s (0.24%) |
When
-Cstrip
was changed in #131405 to use the bundled rust-objcopy instead of /usr/bin/strip on OSX, strip-like arguments were preserved.But strip and objcopy are, while being the same binary, different, they have different defaults depending on which binary they are. Notably, strip strips everything by default, and objcopy doesn't strip anything by default.
Additionally,
-S
actually means--strip-all
, so debuginfo stripped everything and symbols didn't strip anything.We now correctly pass
--strip-debug
and--strip-all
.fixes #135028
try-job: aarch64-apple
try-job: dist-aarch64-apple