mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-24 13:53:24 +00:00
gbenchmark: use upstream flag for devendoring gtest
This commit is contained in:
parent
e6a60f696c
commit
449f466945
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user