hare: fix eval without enableCrossCompilation (#427181)

This commit is contained in:
Philip Taron
2025-07-21 15:48:10 -07:00
committed by GitHub
+1 -2
View File
@@ -23,8 +23,7 @@ assert
inherit (lib) intersectLists platforms concatStringsSep;
workingPlatforms = intersectLists platforms.linux (with platforms; x86_64 ++ aarch64 ++ riscv64);
in
(enableCrossCompilation -> !(isLinux && is64bit))
-> builtins.throw ''
lib.assertMsg (enableCrossCompilation -> isLinux && is64bit) ''
The cross-compilation toolchains may only be enabled on the following platforms:
${concatStringsSep "\n" workingPlatforms}
'';