From 9ec4fb0cd10d91831ba801ee675d6134f880c9f0 Mon Sep 17 00:00:00 2001 From: schotts-fired Date: Mon, 30 Aug 2021 18:24:42 +0200 Subject: R: add memory profiling compile option --- pkgs/applications/science/math/R/default.nix | 2 ++ 1 file changed, 2 insertions(+) (limited to 'pkgs/applications/science/math') diff --git a/pkgs/applications/science/math/R/default.nix b/pkgs/applications/science/math/R/default.nix index 5de644dfdfac9..a8fdfe8571a61 100644 --- a/pkgs/applications/science/math/R/default.nix +++ b/pkgs/applications/science/math/R/default.nix @@ -4,6 +4,7 @@ , curl, Cocoa, Foundation, libobjc, libcxx, tzdata , withRecommendedPackages ? true , enableStrictBarrier ? false +, enableMemoryProfiling ? false # R as of writing does not support outputting both .so and .a files; it outputs: # --enable-R-static-lib conflicts with --enable-R-shlib and will be ignored , static ? false @@ -56,6 +57,7 @@ stdenv.mkDerivation rec { --with-libtiff --with-ICU ${lib.optionalString enableStrictBarrier "--enable-strict-barrier"} + ${lib.optionalString enableMemoryProfiling "--enable-memory-profiling"} ${if static then "--enable-R-static-lib" else "--enable-R-shlib"} AR=$(type -p ar) AWK=$(type -p gawk) -- cgit 1.4.1