Skip to content

Commit

Permalink
Merge pull request NixOS#152731 from misuzu/rustc-jemalloc
Browse files Browse the repository at this point in the history
rustc: build with jemalloc
  • Loading branch information
Mic92 authored and jsoo1 committed Jul 14, 2022
1 parent 75db405 commit 7923c19
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkgs/development/compilers/rust/rustc.nix
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ in stdenv.mkDerivation rec {
"${setHost}.musl-root=${pkgsBuildHost.targetPackages.stdenv.cc.libc}"
] ++ optionals stdenv.targetPlatform.isMusl [
"${setTarget}.musl-root=${pkgsBuildTarget.targetPackages.stdenv.cc.libc}"
] ++ optionals (stdenv.isDarwin && stdenv.isx86_64) [
# https://github.com/rust-lang/rust/issues/92173
"--set rust.jemalloc"
];

# The bootstrap.py will generated a Makefile that then executes the build.
Expand Down

0 comments on commit 7923c19

Please sign in to comment.