jemalloc nitpick: better semantics for stripPrefix
This commit is contained in:
parent
b3eaad9a27
commit
666870d813
@ -4,8 +4,8 @@
|
|||||||
# then stops downstream builds (mariadb in particular) from detecting it. This
|
# then stops downstream builds (mariadb in particular) from detecting it. This
|
||||||
# option should remove the prefix and give us a working jemalloc.
|
# option should remove the prefix and give us a working jemalloc.
|
||||||
# Causes segfaults with some software (ex. rustc), but defaults to true for backward
|
# Causes segfaults with some software (ex. rustc), but defaults to true for backward
|
||||||
# compatibility. Ignored on non OSX.
|
# compatibility.
|
||||||
, stripPrefix ? true
|
, stripPrefix ? stdenv.hostPlatform.isDarwin
|
||||||
, disableInitExecTls ? false
|
, disableInitExecTls ? false
|
||||||
}:
|
}:
|
||||||
|
|
||||||
@ -22,8 +22,8 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
# see the comment on stripPrefix
|
# see the comment on stripPrefix
|
||||||
configureFlags = []
|
configureFlags = []
|
||||||
++ optional (stdenv.isDarwin && stripPrefix) [ "--with-jemalloc-prefix=" ]
|
++ optional stripPrefix "--with-jemalloc-prefix="
|
||||||
++ optional disableInitExecTls [ "--disable-initial-exec-tls" ]
|
++ optional disableInitExecTls "--disable-initial-exec-tls"
|
||||||
;
|
;
|
||||||
|
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user