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"
]
[profile.dev]
panic = "abort"
lto = false
[profile.release]
panic = "abort"
debug = true
# Link-Time Optimization:
# turn off if you get unusable debug symbols.
codegen-units = 1
opt-level = 'z'
lto = true
opt-level = 'z' # Optimize for size.
[patch.crates-io]
core_io = { path = "./libcoreio" }

View File

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