Skip to content

Commit

Permalink
set rustflags to use lld
Browse files Browse the repository at this point in the history
  • Loading branch information
JRMurr committed Dec 12, 2023
1 parent bb94059 commit 2172477
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
18 changes: 9 additions & 9 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@

shellHook = ''
export LLVM_SYS_${llvmMajorMinorStr}_PREFIX="${llvmPkgs.llvm.dev}"
# faster builds - see https://github.com/roc-lang/roc/blob/main/BUILDING_FROM_SOURCE.md#use-lld-for-the-linker
export RUSTFLAGS="-C link-arg=-fuse-ld=lld -C link-arg=-fuse-ld=lld $RUSTFLAGS"
${aliases}
'';
};
Expand Down

0 comments on commit 2172477

Please sign in to comment.