Skip to content

Commit c9869a5

Browse files
CorwinproAnuarTB
authored andcommitted
BUILD: strip for release build (tensorflow#6765)
## Motivation for features / changes Potential improvement to the build: reduce the binary size by ~5Mb ## Technical description of changes Run `strip` on release build so that [whatever strip does to the binary] is not shipped in the production build. ## Screenshots of UI changes (or N/A) ## Detailed steps to verify changes work correctly (as executed by you) Run `cargo build --release`, with and without the change, to observe the binary size (as tested on M1 Mac) reducing from 14Mb to 9.5Mb ## Alternate designs / implementations considered (or N/A)
1 parent fc0bbbd commit c9869a5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tensorboard/data/server/Cargo.toml

+3
Original file line numberDiff line numberDiff line change
@@ -133,3 +133,6 @@ data_attr = "glob([\"src/**/*.der\"])"
133133
[package.metadata.raze.crates.webpki.'0.22.0']
134134
gen_buildrs = true
135135
data_attr = "glob([\"src/**/*.der\"])"
136+
137+
[profile.release]
138+
strip = true

0 commit comments

Comments
 (0)