about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src/coverage/tests.rs
diff options
context:
space:
mode:
authorNoratrieb <48135649+Noratrieb@users.noreply.github.com>2025-01-02 16:50:21 +0100
committerPietro Albini <pietro@pietroalbini.org>2025-01-07 20:22:48 +0100
commit031ad72d4d746dea25c8d5fc754ecea98927b5d5 (patch)
treea9bc36cb2887de78aefeb5d63776d65f91087bac /compiler/rustc_mir_transform/src/coverage/tests.rs
parent3bc7fcab335c8e10b128431163acc9cca00cc5ba (diff)
downloadrust-031ad72d4d746dea25c8d5fc754ecea98927b5d5.tar.gz
rust-031ad72d4d746dea25c8d5fc754ecea98927b5d5.zip
Pass objcopy args for stripping on OSX
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`.
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/tests.rs')
0 files changed, 0 insertions, 0 deletions