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