nanos6: add debug version for for libstdc++
This commit is contained in:
parent
4780a81d70
commit
f68564efe6
@ -14,6 +14,7 @@
|
|||||||
, enableJemalloc ? true
|
, enableJemalloc ? true
|
||||||
, jemalloc ? null
|
, jemalloc ? null
|
||||||
, cachelineBytes ? 64
|
, cachelineBytes ? 64
|
||||||
|
, enableGlibcxxDebug ? false
|
||||||
}:
|
}:
|
||||||
|
|
||||||
assert enableJemalloc -> (jemalloc != null);
|
assert enableJemalloc -> (jemalloc != null);
|
||||||
@ -44,7 +45,8 @@ stdenv.mkDerivation rec {
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
configureFlags = [] ++
|
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
|
# The "bindnow" flags are incompatible with ifunc resolution mechanism. We
|
||||||
# disable all by default, which includes bindnow.
|
# disable all by default, which includes bindnow.
|
||||||
|
@ -82,7 +82,9 @@ let
|
|||||||
dontStrip = true;
|
dontStrip = true;
|
||||||
enableDebugging = true;
|
enableDebugging = true;
|
||||||
});
|
});
|
||||||
nanos6Jemalloc = bsc.nanos6.override { enableJemalloc = true; };
|
nanos6GlibcxxDebug = bsc.nanos6Debug.override {
|
||||||
|
enableGlibcxxDebug = true;
|
||||||
|
};
|
||||||
|
|
||||||
jemalloc = self.jemalloc.overrideAttrs (old:
|
jemalloc = self.jemalloc.overrideAttrs (old:
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user