3
0
Fork 0
forked from mirrors/nixpkgs

flatbuffers: don’t build tests when cross compiling

This commit is contained in:
Matthew Bauer 2020-04-01 22:30:57 -04:00
parent 7887d50ae4
commit 89dac3c856

View file

@ -18,7 +18,9 @@ stdenv.mkDerivation (rec {
nativeBuildInputs = [ cmake ]; nativeBuildInputs = [ cmake ];
enableParallelBuilding = true; enableParallelBuilding = true;
doCheck = true; cmakeFlags = [ "-DFLATBUFFERS_BUILD_TESTS=${if doCheck then "ON" else "OFF"}" ];
doCheck = stdenv.hostPlatform == stdenv.buildPlatform;
checkTarget = "test"; checkTarget = "test";
meta = { meta = {