mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-06-16 07:36:38 +00:00
Update justfile to use lld on macOS and Linux
When cargo-zigbuild is not used Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
ee16116583
commit
7e0856a935
1 changed files with 7 additions and 7 deletions
14
justfile
14
justfile
|
@ -131,13 +131,13 @@ rustc-miropt := "" # if for-release != "" { " -Z mir-opt-level=4" } else { "" }
|
||||||
#
|
#
|
||||||
# If cargo-zigbuild is used, then it will provide the lld linker.
|
# If cargo-zigbuild is used, then it will provide the lld linker.
|
||||||
# This option is disabled on windows since it not supported.
|
# This option is disabled on windows since it not supported.
|
||||||
rust-lld := "" #if use-cargo-zigbuild != "" {
|
rust-lld := if use-cargo-zigbuild != "" {
|
||||||
#""
|
""
|
||||||
#} else if target-os != "windows" {
|
} else if target-os != "windows" {
|
||||||
#" -Z gcc-ld=lld"
|
" -C link-arg=-fuse-ld=lld"
|
||||||
#} else {
|
} else {
|
||||||
#""
|
""
|
||||||
#}
|
}
|
||||||
|
|
||||||
# ICF: link-time identical code folding
|
# ICF: link-time identical code folding
|
||||||
#
|
#
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue