From f6e25ecc42d11dbe395f4b9b414cdc0f8720d89d Mon Sep 17 00:00:00 2001 From: Jiahao XU <30436523+NobodyXu@users.noreply.github.com> Date: Sun, 4 May 2025 01:07:49 +1000 Subject: [PATCH] Disable icf on linux since latest zig-cc does not support it Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com> --- justfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/justfile b/justfile index f4590818..e9cb9f53 100644 --- a/justfile +++ b/justfile @@ -115,13 +115,12 @@ rust-lld := "" #if use-cargo-zigbuild != "" { # ICF: link-time identical code folding # -# On windows it works out of the box and on linux it uses -# rust-lld. +# On windows it works out of the box. rustc-icf := if for-release != "" { if target-os == "windows" { " -C link-arg=-Wl,--icf=safe" } else if target-os == "linux" { - " -C link-arg=-Wl,--icf=safe" + "" } else { "" }