mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-05 13:23:17 +00:00
flatbuffers: don’t build tests when cross compiling
This commit is contained in:
parent
7887d50ae4
commit
89dac3c856
@ -18,7 +18,9 @@ stdenv.mkDerivation (rec {
|
||||
nativeBuildInputs = [ cmake ];
|
||||
enableParallelBuilding = true;
|
||||
|
||||
doCheck = true;
|
||||
cmakeFlags = [ "-DFLATBUFFERS_BUILD_TESTS=${if doCheck then "ON" else "OFF"}" ];
|
||||
|
||||
doCheck = stdenv.hostPlatform == stdenv.buildPlatform;
|
||||
checkTarget = "test";
|
||||
|
||||
meta = {
|
||||
|
Loading…
Reference in New Issue
Block a user