Skip to content

Commit 9bf2de2

Browse files
committed
use opt-level z
This generates smaller binaries.
1 parent 18356db commit 9bf2de2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ overflow-checks = false
8383
# duplicated from `bios/stage-2/Cargo.toml`
8484
[profile.stage-2]
8585
inherits = "release"
86-
opt-level = "s"
86+
opt-level = "z"
8787
codegen-units = 1
8888
debug = false
8989
overflow-checks = true

bios/stage-2/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ bootloader-x86_64-bios-common = { workspace = true }
1818
# See https://github.com/rust-lang/cargo/issues/8264 for details.
1919
[profile.stage-2]
2020
inherits = "release"
21-
opt-level = "s"
21+
opt-level = "z"
2222
codegen-units = 1
2323
debug = false
2424
overflow-checks = true

0 commit comments

Comments
 (0)