waf: only add crossFlags when hostPlatform.system == targetPlatform
waf fails otherwise in some weird CHECK_UNAME things Fixes #62540
This commit is contained in:
parent
9f7bb1f512
commit
6c9977f753
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue