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 ;-)
wip/yesman
Eelco Dolstra 5 years ago
parent 57adfbd3d4
commit 7706f36d0d
No known key found for this signature in database
GPG Key ID: 8170B4726D7198DE
  1. 2
      pkgs/development/compilers/rust/rustc.nix

@ -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…
Cancel
Save