Skip to content

Commit

Permalink
nix: overwrite, don't append, to $RUSTFLAGS
Browse files Browse the repository at this point in the history
This matches the behavior of the actual `nix build` more closely, and might also
help Anton, since he was debugging some recompilation issues on his machine,
where `RUSTFLAGS` might have become inconsistent due to VS Code.

Signed-off-by: Austin Seipp <[email protected]>
  • Loading branch information
thoughtpolice committed Feb 21, 2024
1 parent f97e929 commit c32b68e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@
export ZSTD_SYS_USE_PKG_CONFIG=1
export LIBSSH2_SYS_USE_PKG_CONFIG=1
'' + pkgs.lib.optionalString useMoldLinker ''
export RUSTFLAGS="-C link-arg=-fuse-ld=mold $RUSTFLAGS"
export RUSTFLAGS="-C link-arg=-fuse-ld=mold"
'';
};
}));
Expand Down

0 comments on commit c32b68e

Please sign in to comment.