mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-03-16 00:53:01 +00:00
rustc: Enable profiling support
This matches the upstream binary releases (see https://github.com/rust-lang/rust/blob/beta/src/ci/docker/x86_64-gnu/Dockerfile). Upstream also enables sanitizer support but that adds another 39 MiB to the package size, and who needs sanitizers in Rust anyway ;-)
This commit is contained in:
parent
57adfbd3d4
commit
7706f36d0d
|
@ -86,6 +86,8 @@ in stdenv.mkDerivation rec {
|
|||
"${setBuild}.llvm-config=${llvmSharedForBuild}/bin/llvm-config"
|
||||
"${setHost}.llvm-config=${llvmSharedForHost}/bin/llvm-config"
|
||||
"${setTarget}.llvm-config=${llvmSharedForTarget}/bin/llvm-config"
|
||||
] ++ optional stdenv.isLinux [
|
||||
"--enable-profiler" # build libprofiler_builtins
|
||||
];
|
||||
|
||||
# The bootstrap.py will generated a Makefile that then executes the build.
|
||||
|
|
Loading…
Reference in a new issue