1
0
Fork 0

tune compiler optimizations

This commit is contained in:
Sebastien Bourdeauducq 2020-08-06 10:32:03 +08:00
parent 5becf0af0a
commit 2f7cc6fc38
2 changed files with 3 additions and 8 deletions

View File

@ -9,17 +9,12 @@ members = [
"szl" "szl"
] ]
[profile.dev]
panic = "abort"
lto = false
[profile.release] [profile.release]
panic = "abort" panic = "abort"
debug = true debug = true
# Link-Time Optimization: codegen-units = 1
# turn off if you get unusable debug symbols. opt-level = 'z'
lto = true lto = true
opt-level = 'z' # Optimize for size.
[patch.crates-io] [patch.crates-io]
core_io = { path = "./libcoreio" } core_io = { path = "./libcoreio" }

View File

@ -32,7 +32,7 @@ pub fn compile_unlzma() {
cfg.flag("-fPIC"); cfg.flag("-fPIC");
cfg.flag("-fno-stack-protector"); cfg.flag("-fno-stack-protector");
cfg.flag("--target=armv7-none-eabihf"); cfg.flag("--target=armv7-none-eabihf");
cfg.flag("-O2"); cfg.flag("-Os");
let sources = vec![ let sources = vec![
"unlzma.c", "unlzma.c",