nanos6: add debug version for for libstdc++

This commit is contained in:
Rodrigo Arias 2021-03-11 17:56:12 +01:00
parent 4780a81d70
commit f68564efe6
2 changed files with 6 additions and 2 deletions

View File

@ -14,6 +14,7 @@
, enableJemalloc ? true
, jemalloc ? null
, cachelineBytes ? 64
, enableGlibcxxDebug ? false
}:
assert enableJemalloc -> (jemalloc != null);
@ -44,7 +45,8 @@ stdenv.mkDerivation rec {
'';
configureFlags = [] ++
optional enableJemalloc "--with-jemalloc=${jemalloc}";
optional enableJemalloc "--with-jemalloc=${jemalloc}" ++
optional enableGlibcxxDebug "CXXFLAGS=-D_GLIBCXX_DEBUG";
# The "bindnow" flags are incompatible with ifunc resolution mechanism. We
# disable all by default, which includes bindnow.

View File

@ -82,7 +82,9 @@ let
dontStrip = true;
enableDebugging = true;
});
nanos6Jemalloc = bsc.nanos6.override { enableJemalloc = true; };
nanos6GlibcxxDebug = bsc.nanos6Debug.override {
enableGlibcxxDebug = true;
};
jemalloc = self.jemalloc.overrideAttrs (old:
{