tune compiler optimizations
This commit is contained in:
parent
5becf0af0a
commit
2f7cc6fc38
@ -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" }
|
||||||
|
@ -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",
|
||||||
|
Loading…
Reference in New Issue
Block a user