Skip to content

Commit 1931f13

Browse files
josephlrrbradford
authored andcommitted
build: Disable LTO in debug mode
If we want the debug build to be fast, there's no reason to have LTO. Also, using LTO in debug mode breaks -Zbuild-std Signed-off-by: Joe Richey <[email protected]>
1 parent bad7260 commit 1931f13

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ edition = "2018"
88
# needed here to make "cargo check" and "cargo clippy" run without errors.
99
[profile.dev]
1010
panic = "abort"
11-
lto = true
1211

1312
[profile.release]
1413
panic = "abort"

src/asm/ram32.s

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.section .text32, "ax"
2+
.global ram32_start
23
.code32
34

45
ram32_start:

0 commit comments

Comments
 (0)