mirror of
https://github.com/martinvonz/jj.git
synced 2025-01-12 07:14:38 +00:00
nix: parallel rustc
frontend in devShell
Only active within `devShell`; the default `.#jujutsu` package is unaffected by this change. This somewhat increases CPU utilization and has a marginal improvement on my local compile times, but it's also nice if you have to recompile from scratch too. Signed-off-by: Austin Seipp <aseipp@pobox.com> Change-Id: I07ab28991843ca3723185569db5f38f2ed076875
This commit is contained in:
parent
749481e552
commit
ad34d10951
1 changed files with 3 additions and 1 deletions
|
@ -175,8 +175,10 @@
|
|||
export RUST_BACKTRACE=1
|
||||
export ZSTD_SYS_USE_PKG_CONFIG=1
|
||||
export LIBSSH2_SYS_USE_PKG_CONFIG=1
|
||||
|
||||
export RUSTFLAGS="-Zthreads=0"
|
||||
'' + pkgs.lib.optionalString useMoldLinker ''
|
||||
export RUSTFLAGS="-C link-arg=-fuse-ld=mold"
|
||||
export RUSTFLAGS+=" -C link-arg=-fuse-ld=mold"
|
||||
'' + darwinNextestHack;
|
||||
};
|
||||
}));
|
||||
|
|
Loading…
Reference in a new issue