limine: disable zerocallusedregs on loongarch64/riscv64

This commit is contained in:
nat
2025-09-08 19:24:46 +02:00
parent b599843bad
commit 3b2a2eb1ce
+11
View File
@@ -23,6 +23,13 @@ let
|| (if targets == [ ] then stdenv.hostPlatform.isx86_64 else (builtins.elem "x86_64" targets))
|| enableAll;
missingZerocallusedregs =
(
if targets == [ ] then stdenv.hostPlatform.isLoongArch64 else (builtins.elem "loongarch64" targets)
)
|| (if targets == [ ] then stdenv.hostPlatform.isRiscV64 else (builtins.elem "riscv64" targets))
|| enableAll;
biosSupport' = biosSupport && hasX86;
pxeSupport' = pxeSupport && hasX86;
@@ -54,6 +61,10 @@ stdenv.mkDerivation (finalAttrs: {
enableParallelBuilding = true;
hardeningDisable = lib.optionals missingZerocallusedregs [
"zerocallusedregs"
];
nativeBuildInputs = [
llvmPackages.libllvm
llvmPackages.lld