native builds: link with mold
This commit is contained in:
parent
e4e2f48de4
commit
acc8d39fd6
1 changed files with 4 additions and 4 deletions
|
@ -102,7 +102,7 @@ let
|
|||
};
|
||||
|
||||
codegenOpts = if target != null then codegenOptsMap.${target} else [
|
||||
# "link-args=-fuse-ld=mold"
|
||||
"link-arg=-fuse-ld=mold"
|
||||
];
|
||||
|
||||
commonArgs =
|
||||
|
@ -119,8 +119,8 @@ let
|
|||
stdenv.cc
|
||||
protobuf
|
||||
] ++ lib.optionals (target == null) [
|
||||
# clang
|
||||
# mold
|
||||
clang
|
||||
mold
|
||||
]);
|
||||
|
||||
GIT_VERSION = git_version;
|
||||
|
@ -140,7 +140,7 @@ let
|
|||
HOST_CC = "${stdenv.cc.nativePrefix}cc";
|
||||
TARGET_CC = "${stdenv.cc.targetPrefix}cc";
|
||||
} else {
|
||||
# CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER = "clang";
|
||||
CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER = "clang";
|
||||
});
|
||||
|
||||
in rec {
|
||||
|
|
Loading…
Add table
Reference in a new issue