Skip to content

Commit

Permalink
in flake mkShell default RUSTFLAGS to an empty string if unset
Browse files Browse the repository at this point in the history
  • Loading branch information
plul committed Jun 4, 2024
1 parent 31bcde3 commit faaf21b
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 @@ -116,7 +116,7 @@
else pkgs.clangStdenv;
rustFlagsEnv =
if stdenv.isLinux
then ''$RUSTFLAGS -C link-arg=-fuse-ld=lld -C target-cpu=native -Clink-arg=-Wl,--no-rosegment''
then ''''${RUSTFLAGS:-""} -C link-arg=-fuse-ld=lld -C target-cpu=native -Clink-arg=-Wl,--no-rosegment''
else "$RUSTFLAGS";
rustToolchain = pkgs.pkgsBuildHost.rust-bin.fromRustupToolchainFile ./rust-toolchain.toml;
craneLibMSRV = (crane.mkLib pkgs).overrideToolchain rustToolchain;
Expand Down

0 comments on commit faaf21b

Please sign in to comment.