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
@ -6716,7 +6716,7 @@ in
|
|||||||
deps = [ python ];
|
deps = [ python ];
|
||||||
substitutions = {
|
substitutions = {
|
||||||
inherit waf;
|
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}"'';
|
''--cross-compile "--cross-execute=${stdenv.targetPlatform.emulator pkgs}"'';
|
||||||
};
|
};
|
||||||
} ../development/tools/build-managers/waf/setup-hook.sh;
|
} ../development/tools/build-managers/waf/setup-hook.sh;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user