ok/jj
1
0
Fork 0
forked from mirrors/jj

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:
Austin Seipp 2024-04-04 01:35:05 -05:00
parent 749481e552
commit ad34d10951

View file

@ -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;
};
}));