waf: only add crossFlags when hostPlatform.system == targetPlatform

waf fails otherwise in some weird CHECK_UNAME things

Fixes #62540
This commit is contained in:
Matthew Bauer 2019-06-03 12:23:02 -04:00
parent 9f7bb1f512
commit 6c9977f753

View file

@ -6716,7 +6716,7 @@ in
deps = [ python ];
substitutions = {
inherit waf;
crossFlags = lib.optionalString (stdenv.hostPlatform != stdenv.targetPlatform)
crossFlags = lib.optionalString (stdenv.hostPlatform.system != stdenv.targetPlatform.system)
''--cross-compile "--cross-execute=${stdenv.targetPlatform.emulator pkgs}"'';
};
} ../development/tools/build-managers/waf/setup-hook.sh;