From 56a2b59addad139f7eff8c9beceeb6931cf4fc2c Mon Sep 17 00:00:00 2001 From: Jiahao XU <30436523+NobodyXu@users.noreply.github.com> Date: Sun, 4 May 2025 01:06:31 +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..5268225d 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 { "" }