about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorNoratrieb <48135649+Noratrieb@users.noreply.github.com>2025-01-02 16:50:21 +0100
committerNoratrieb <48135649+Noratrieb@users.noreply.github.com>2025-01-02 22:17:39 +0100
commit4da3aedb5e98cf9f9ce3fd33720b9d2751753dfe (patch)
treea592a9f133e91c34c3ebd5e9703e2cba98a3aa37 /compiler/rustc_codegen_llvm/src
parentbf6f8a4d328f7f3b0f6ea8205ad28591cc11aafd (diff)
downloadrust-4da3aedb5e98cf9f9ce3fd33720b9d2751753dfe.tar.gz
rust-4da3aedb5e98cf9f9ce3fd33720b9d2751753dfe.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_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions