gbenchmark: use upstream flag for devendoring gtest

This commit is contained in:
Emily 2024-10-02 13:39:23 +01:00
parent e6a60f696c
commit 449f466945

View File

@ -20,7 +20,10 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ cmake ninja ];
checkInputs = [ gtest ];
cmakeFlags = [
(lib.cmakeBool "BENCHMARK_USE_BUNDLED_GTEST" false)
(lib.cmakeBool "BENCHMARK_ENABLE_WERROR" false)
];
@ -34,11 +37,6 @@ stdenv.mkDerivation rec {
# with Xcode, but we just work around it by silencing the warning.
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-c++17-attribute-extensions";
postPatch = ''
cp -r ${gtest.src} googletest
chmod -R u+w googletest
'';
# Tests fail on 32-bit due to not enough precision
doCheck = stdenv.hostPlatform.is64bit;