Skip to content

Commit 5df0c68

Browse files
authored
Rollup merge of #139215 - clubby789:std-size-tweaks, r=joboet
Add `opt-level = "s"` for more std symbolication crates This reduces the size of a hello world binary built by stage 1 in release by a few kilobytes
2 parents eb23a59 + 4c92418 commit 5df0c68

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: library/Cargo.toml

+3
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,11 @@ adler2.debug = 0
3838
gimli.debug = 0
3939
gimli.opt-level = "s"
4040
miniz_oxide.debug = 0
41+
miniz_oxide.opt-level = "s"
42+
# `opt-level = "s"` for `object` led to a size regression when tried previously
4143
object.debug = 0
4244
rustc-demangle.debug = 0
45+
rustc-demangle.opt-level = "s"
4346

4447
[patch.crates-io]
4548
# See comments in `library/rustc-std-workspace-core/README.md` for what's going on

0 commit comments

Comments
 (0)