Evaluate stripping rust executables & libraries in toolchain tasks
Categories
(Firefox Build System :: Toolchains, enhancement)
Tracking
(Not tracked)
People
(Reporter: gsvelto, Unassigned)
Details
As per title. cargo build --release does not strip the executables so all the tools we produce from rust (with the exception of liblowercase) are not stripped.
A quick test on dump_syms shows that it would shrink down from ~16MiB to ~10MiB. Not bad! We should try the others, the savings are probably worth it unless we have a good reason to keep the executables un-stripped (backtraces maybe?).
Comment 1•3 years ago
|
||
(In reply to Gabriele Svelto [:gsvelto] from comment #0)
A quick test on
dump_symsshows that it would shrink down from ~16MiB to ~10MiB. Not bad!
That's the uncompressed size, though. Compressed, the dump_syms archive is 5.5M, and stripped, it's 4.1MB. That's a 25% reduction, instead of 38%. Not bad, but less enticing considering...
We should try the others, the savings are probably worth it unless we have a good reason to keep the executables un-stripped (backtraces maybe?).
... yes, less useful backtraces.
Also, the sum of all the rust-based toolchains we have is dwarfed by e.g. clang.
IOW, I don't think it's worth doing.
Description
•