From a9f6bb6169d60b5c2e9cd2cdbf11bba4464658cb Mon Sep 17 00:00:00 2001 From: strawberry Date: Fri, 13 Dec 2024 13:35:36 -0500 Subject: [PATCH] remove jemalloc_prof and jemalloc_stats from all-features builds (exc. debug) Signed-off-by: strawberry --- flake.nix | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/flake.nix b/flake.nix index ba93333f..08120ffd 100644 --- a/flake.nix +++ b/flake.nix @@ -208,6 +208,10 @@ "hardened_malloc" # dont include experimental features "experimental" + # jemalloc profiling/stats features are expensive and shouldn't + # be expected on non-debug builds. + "jemalloc_prof" + "jemalloc_stats" ]; }; all-features-debug = scopeHost.main.override { @@ -233,6 +237,10 @@ "hardened_malloc" # dont include experimental features "experimental" + # jemalloc profiling/stats features are expensive and shouldn't + # be expected on non-debug builds. + "jemalloc_prof" + "jemalloc_stats" ]; }; }; @@ -318,6 +326,10 @@ "hardened_malloc" # dont include experimental features "experimental" + # jemalloc profiling/stats features are expensive and shouldn't + # be expected on non-debug builds. + "jemalloc_prof" + "jemalloc_stats" ]; }; } @@ -333,6 +345,10 @@ "hardened_malloc" # dont include experimental features "experimental" + # jemalloc profiling/stats features are expensive and shouldn't + # be expected on non-debug builds. + "jemalloc_prof" + "jemalloc_stats" ]; x86_64_haswell_target_optimised = (if (crossSystem == "x86_64-linux-gnu" || crossSystem == "x86_64-linux-musl") then true else false); }; @@ -403,6 +419,10 @@ "hardened_malloc" # dont include experimental features "experimental" + # jemalloc profiling/stats features are expensive and shouldn't + # be expected on non-debug builds. + "jemalloc_prof" + "jemalloc_stats" ]; }; }; @@ -420,6 +440,10 @@ "hardened_malloc" # dont include experimental features "experimental" + # jemalloc profiling/stats features are expensive and shouldn't + # be expected on non-debug builds. + "jemalloc_prof" + "jemalloc_stats" ]; x86_64_haswell_target_optimised = (if (crossSystem == "x86_64-linux-gnu" || crossSystem == "x86_64-linux-musl") then true else false); }; @@ -482,6 +506,10 @@ "hardened_malloc" # dont include experimental features "experimental" + # jemalloc profiling/stats features are expensive and shouldn't + # be expected on non-debug builds. + "jemalloc_prof" + "jemalloc_stats" ]; }; }));