Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,18 +11,17 @@ stdenv.mkDerivation rec { | |
sha256 = "1x7r8sjmdqlqjz0xfiwdyrqpgaj5yrvrgb28ivgpvnxgar5qv6m2"; | ||
}; | ||
|
||
patches = [ ./disable-benchmark.patch ]; | ||
|
||
outputs = [ "out" "dev" ]; | ||
|
||
nativeBuildInputs = [ cmake ]; | ||
|
||
# -DNDEBUG for speed | ||
configureFlags = [ "CXXFLAGS=-DNDEBUG" ]; | ||
cmakeFlags = [ "-DBUILD_SHARED_LIBS=ON" "-DCMAKE_SKIP_BUILD_RPATH=OFF" ]; | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
orivej
Author
Contributor
|
||
|
||
checkTarget = "test"; | ||
|
||
# SIGILL on darwin | ||
doCheck = !stdenv.isDarwin; | ||
checkPhase = '' | ||
(cd .. && ./build/snappy_unittest) | ||
''; | ||
doCheck = true; | ||
|
||
meta = with stdenv.lib; { | ||
homepage = https://google.github.io/snappy/; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- a/snappy-test.cc | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
orivej
Author
Contributor
|
||
+++ b/snappy-test.cc | ||
@@ -46 +46 @@ | ||
-DEFINE_bool(run_microbenchmarks, true, | ||
+DEFINE_bool(run_microbenchmarks, false, |
Is this a common CMake flag or something specific to snappy? Sounds like it should be always on.