tangled
alpha
login
or
join now
wiro.world
/
dotfiles
2
fork
atom
yep, more dotfiles
2
fork
atom
overview
issues
1
pulls
1
pipelines
rust: use wild instead of mold
wiro.world
2 months ago
8857acb9
ec257ddf
verified
This commit was signed with the committer's
known signature
.
wiro.world
SSH Key Fingerprint:
SHA256:SmMcWpNAnL+VAgItSawvXgdPVn7f1rsyAuB/5VNclKY=
+3
-2
1 changed file
expand all
collapse all
unified
split
home-manager
fragments
rust.nix
+3
-2
home-manager/fragments/rust.nix
···
29
29
home.file."${config.home.sessionVariables.CARGO_HOME}/config.toml".source =
30
30
let
31
31
clang = lib.getExe pkgs.llvmPackages.clang;
32
32
-
mold = lib.getExe pkgs.mold;
32
32
+
mold = lib.getExe pkgs.mold-wrapped;
33
33
+
wild = lib.getExe pkgs.wild;
33
34
34
35
get-crates-io-token = pkgs.writeShellScript "get-crates-io-token" "cat ${config.age.secrets.api-crates-io.path}";
35
36
in
···
48
49
target = {
49
50
x86_64-unknown-linux-gnu = {
50
51
linker = clang;
51
51
-
rustflags = [ "-Clink-arg=--ld-path=${mold}" "-Ctarget-cpu=native" ];
52
52
+
rustflags = [ "-Clink-arg=--ld-path=${wild}" "-Ctarget-cpu=native" ];
52
53
};
53
54
x86_64-apple-darwin.rustflags = [ "-Ctarget-cpu=native" ];
54
55
aarch64-apple-darwin.rustflags = [ "-Ctarget-cpu=native" ];