Unverified Commit 32ca2e4b authored by Maximilian Bosch's avatar Maximilian Bosch
Browse files

rocmPackages.llvm.llvm: fix build w/ glibc-2.42

Failing Hydra build: https://hydra.nixos.org/build/308526977

I'm not sure what exactly caused the failure here, but this patch
from LLVM upstream seems to fix the problem and this regressed right
after the glibc upgrade.
parent 094ddc36
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -293,6 +293,13 @@ overrideLlvmPackagesRocm (s: {
      # TODO: consider reapplying "Don't include aliases in RegisterClassInfo::IgnoreCSRForAllocOrder"
      # it was reverted as it's a pessimization for non-GPU archs, but this compiler
      # is used mostly for amdgpu

      # fix build w/ glibc-2.42
      (fetchpatch {
        url = "https://github.com/llvm/llvm-project/commit/6ee49080e4bb43efe7ede10bed15935853bbd434.patch";
        hash = "sha256-DHEhTC3IWjWksMTD4RqsPQBTKKJOJcNCt16xsEe0QZs=";
        relative = "llvm";
      })
    ];
    dontStrip = profilableStdenv;
    hardeningDisable = [ "all" ];