Use cargo for lto over manually entering rustflags

This commit is contained in:
jD91mZM2
2020-08-01 13:19:12 +02:00
parent fbeb297949
commit 895c0c11da
2 changed files with 14 additions and 1 deletions

View File

@@ -1,2 +1,5 @@
[build]
rustflags = ["-Cembed-bitcode=yes"]
rustflags = [
# Kernel should preserve floating-point registers
"-Csoft-float",
]

View File

@@ -44,3 +44,13 @@ qemu_debug = []
serial_debug = []
system76_ec_debug = []
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