limine: disable zerocallusedregs on loongarch64/riscv64
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user