surelog: fix tcmalloc segfaulting on darwin

This commit is contained in:
dseum
2026-05-17 00:58:50 -07:00
parent 114007098e
commit f4ee2a10de
+4 -3
View File
@@ -43,12 +43,12 @@ stdenv.mkDerivation (finalAttrs: {
buildInputs = [
libuuid
gperftools
uhdm
capnproto
antlr4.runtime.cpp
nlohmann_json
];
]
++ lib.optionals stdenv.hostPlatform.isLinux [ gperftools ];
cmakeFlags = [
"-DSURELOG_USE_HOST_CAPNP=On"
@@ -57,7 +57,8 @@ stdenv.mkDerivation (finalAttrs: {
"-DSURELOG_USE_HOST_ANTLR=On"
"-DSURELOG_USE_HOST_JSON=On"
"-DANTLR_JAR_LOCATION=${antlr4.jarLocation}"
];
]
++ lib.optionals stdenv.hostPlatform.isDarwin [ "-DSURELOG_WITH_TCMALLOC=Off" ];
doCheck = true;
checkPhase = ''