File tree 1 file changed +10
-0
lines changed
1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -90,13 +90,23 @@ overflow-checks = false
90
90
# (more data to chew through) and binaries to be larger without really all that
91
91
# much benefit. This section turns them all to down to have no debuginfo which
92
92
# helps to improve link times a little bit.
93
+ #
94
+ # We also trim down the binary size of generated code by telling LLVM to
95
+ # optimize for size. This code should not be particularly hot, so there's not
96
+ # much advantage in making it fast (vs. making it small).
93
97
[profile .release .package ]
94
98
addr2line.debug = 0
95
99
adler.debug = 0
96
100
gimli.debug = 0
97
101
miniz_oxide.debug = 0
98
102
object.debug = 0
99
103
rustc-demangle.debug = 0
104
+ addr2line.opt-level = " z"
105
+ adler.opt-level = " z"
106
+ gimli.opt-level = " z"
107
+ miniz_oxide.opt-level = " z"
108
+ object.opt-level = " z"
109
+ rustc-demangle.opt-level = " z"
100
110
101
111
# These are very thin wrappers around executing lld with the right binary name.
102
112
# Basically nothing within them can go wrong without having been explicitly logged anyway.
You can’t perform that action at this time.
0 commit comments