From 7706f36d0d5a844655e67cb89d532fc62daecde1 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 31 Jul 2019 17:55:33 +0200 Subject: [PATCH] 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 ;-) --- pkgs/development/compilers/rust/rustc.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/development/compilers/rust/rustc.nix b/pkgs/development/compilers/rust/rustc.nix index 615e71984b6..d7776958390 100644 --- a/pkgs/development/compilers/rust/rustc.nix +++ b/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.