Skip to content

Commit

Permalink
Remove mold suggestion in .envrc.example (#688)
Browse files Browse the repository at this point in the history
<!-- The PR description should answer 2 (maybe 3) important questions:
-->

### What

It's totally reasonable that a user would just copy `.envrc.example` to
`.envrc` and then get going, however this means we try and use `mold`,
which we do not install in the Nix flake, and does not work on MacOS.
Let's make the default path as conservative and likely to work as
possible.

### How

Remove `mold` advice from `.envrc.example`, make `CARGO_INCREMENTAL`
flag opt in.
  • Loading branch information
danieljharvey authored Feb 3, 2025
1 parent 0bb19d7 commit 90a6c21
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions .envrc.example
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,4 @@
use flake

# enable incremental compilation
export CARGO_INCREMENTAL='true'

# use `mold` as your linker, for faster linking (only on Linux)
export RUSTFLAGS='-C link-arg=-fuse-ld=mold'
# export CARGO_INCREMENTAL='true'

0 comments on commit 90a6c21

Please sign in to comment.