From c24f46c96bfcd091677313022ff4796e00ab71bc Mon Sep 17 00:00:00 2001 From: Sean Cross Date: Thu, 9 Jan 2020 10:46:36 +0800 Subject: [PATCH] cargo: enable lto This will inline the asm intrinsics. Signed-off-by: Sean Cross --- .cargo/config | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.cargo/config b/.cargo/config index 95f24e4..afcc9d2 100644 --- a/.cargo/config +++ b/.cargo/config @@ -3,7 +3,8 @@ rustflags = [ "-C", "link-arg=-Tmemory.x", "-C", "link-arg=-Tlink.x", + "-C", "linker-plugin-lto", ] [build] -target = "riscv32i-unknown-none-elf" \ No newline at end of file +target = "riscv32i-unknown-none-elf"