Merge pull request #152731 from misuzu/rustc-jemalloc

rustc: build with jemalloc
This commit is contained in:
Jörg Thalheim 2021-12-31 15:06:00 +00:00 committed by GitHub
commit 5f4ec0f48f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -100,6 +100,9 @@ in stdenv.mkDerivation rec {
"${setHost}.musl-root=${pkgsBuildHost.targetPackages.stdenv.cc.libc}" "${setHost}.musl-root=${pkgsBuildHost.targetPackages.stdenv.cc.libc}"
] ++ optionals stdenv.targetPlatform.isMusl [ ] ++ optionals stdenv.targetPlatform.isMusl [
"${setTarget}.musl-root=${pkgsBuildTarget.targetPackages.stdenv.cc.libc}" "${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. # The bootstrap.py will generated a Makefile that then executes the build.