1
0
mirror of https://github.com/sgmarz/osblog.git synced 2024-11-23 18:06:20 +04:00

Add options in Cargo.toml for lto and optimizer

This commit is contained in:
Stephen Marz 2020-04-21 20:21:56 -04:00
parent 1ae7b115f7
commit f9572be05a
2 changed files with 7 additions and 1 deletions

View File

@ -6,5 +6,12 @@ edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[profile.dev]
opt-level = 0
lto = false
[profile.release]
opt-level = 3
lto = true
[dependencies]

View File

@ -201,7 +201,6 @@ SECTIONS
*/
*(.sdata .sdata.*) *(.data .data.*)
PROVIDE(_data_end = .);
*(.eh_frame)
} >ram AT>ram :data
.bss : {