Unverified Commit 1d941d35 authored by Masum Reza's avatar Masum Reza Committed by GitHub
Browse files

limine: disable zerocallusedregs on loongarch64/riscv64 (#441249)

parents d792a6e0 b271bdef
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -22,6 +22,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;

@@ -52,6 +59,10 @@ stdenv.mkDerivation (finalAttrs: {

  enableParallelBuilding = true;

  hardeningDisable = lib.optionals missingZerocallusedregs [
    "zerocallusedregs"
  ];

  nativeBuildInputs = [
    llvmPackages.libllvm
    llvmPackages.lld
+2 −0
Original line number Diff line number Diff line
@@ -3197,6 +3197,8 @@ with pkgs;
    gtk3 = if stdenv.hostPlatform.isDarwin then gtk3-x11 else gtk3;
  };

  limine-full = limine.override { enableAll = true; };

  liquidsoap = callPackage ../tools/audio/liquidsoap/full.nix {
    ffmpeg = ffmpeg_6-full;
    ocamlPackages = ocaml-ng.ocamlPackages_4_14;