nanos6: add debug version for for libstdc++
This commit is contained in:
parent
4780a81d70
commit
f68564efe6
@ -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.
|
||||
|
@ -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:
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user