From 5a6ef7a3dae2da7f1246b67798ec187d9fe9118a Mon Sep 17 00:00:00 2001 From: xermicus Date: Fri, 19 Apr 2024 18:51:33 +0200 Subject: [PATCH] lto Signed-off-by: xermicus --- crates/linker/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/linker/src/lib.rs b/crates/linker/src/lib.rs index a09e80b..5f47ba8 100644 --- a/crates/linker/src/lib.rs +++ b/crates/linker/src/lib.rs @@ -49,6 +49,7 @@ pub fn link>(input: T) -> anyhow::Result> { let ld_args = [ "ld.lld", + "--lto=full", "--error-limit=0", "--relocatable", "--emit-relocs",