mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-06-15 15:16:37 +00:00
Disable icf on linux
since latest zig-cc does not support it Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
This commit is contained in:
parent
d2c05492e0
commit
f6e25ecc42
1 changed files with 2 additions and 3 deletions
5
justfile
5
justfile
|
@ -115,13 +115,12 @@ rust-lld := "" #if use-cargo-zigbuild != "" {
|
||||||
|
|
||||||
# ICF: link-time identical code folding
|
# ICF: link-time identical code folding
|
||||||
#
|
#
|
||||||
# On windows it works out of the box and on linux it uses
|
# On windows it works out of the box.
|
||||||
# rust-lld.
|
|
||||||
rustc-icf := if for-release != "" {
|
rustc-icf := if for-release != "" {
|
||||||
if target-os == "windows" {
|
if target-os == "windows" {
|
||||||
" -C link-arg=-Wl,--icf=safe"
|
" -C link-arg=-Wl,--icf=safe"
|
||||||
} else if target-os == "linux" {
|
} else if target-os == "linux" {
|
||||||
" -C link-arg=-Wl,--icf=safe"
|
""
|
||||||
} else {
|
} else {
|
||||||
""
|
""
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue