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:
Eelco Dolstra 2019-07-31 17:55:33 +02:00
parent 57adfbd3d4
commit 7706f36d0d
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE

View file

@ -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.