Skip to content
Snippets Groups Projects
Verified Commit 895c0c11 authored by jD91mZM2's avatar jD91mZM2
Browse files

Use cargo for lto over manually entering rustflags

parent fbeb2979
No related branches found
No related tags found
No related merge requests found
[build] [build]
rustflags = ["-Cembed-bitcode=yes"] rustflags = [
# Kernel should preserve floating-point registers
"-Csoft-float",
]
...@@ -44,3 +44,13 @@ qemu_debug = [] ...@@ -44,3 +44,13 @@ qemu_debug = []
serial_debug = [] serial_debug = []
system76_ec_debug = [] system76_ec_debug = []
slab = ["slab_allocator"] slab = ["slab_allocator"]
[profile.dev]
# Kernel doesn't yet work great with debug mode :(
opt-level = 3
# LTO fixes some duplicate symbols of memcpy/memmove/etc
lto = true
[profile.release]
lto = true
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment