summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorNoratrieb <48135649+Noratrieb@users.noreply.github.com>2025-01-02 16:50:21 +0100
committerPietro Albini <pietro.albini@ferrous-systems.com>2025-01-06 17:06:45 +0100
commit70246e6fb99aea432adc775def1fdbf1d34b9ef8 (patch)
tree193a8f9b433782f68231b68accd847f3fad3e5f6 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent953a5caef005993f93d8fe9baa344cc2591496c2 (diff)
downloadrust-70246e6fb99aea432adc775def1fdbf1d34b9ef8.tar.gz
rust-70246e6fb99aea432adc775def1fdbf1d34b9ef8.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_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions