Unverified Commit dc306bed authored by Tristan Ross's avatar Tristan Ross
Browse files

llvmPackages: fix formatting

parent 001a9c92
Loading
Loading
Loading
Loading
+13 −10
Original line number Diff line number Diff line
@@ -507,9 +507,11 @@ let
      llvm = tools.libllvm;

      tblgen = callPackage ./tblgen.nix {
        patches = builtins.filter
        patches =
          builtins.filter
            # Crude method to drop polly patches if present, they're not needed for tblgen.
          (p: (!lib.hasInfix "-polly" p)) tools.libllvm.patches;
            (p: (!lib.hasInfix "-polly" p))
            tools.libllvm.patches;
        clangPatches = [
          # Would take tools.libclang.patches, but this introduces a cycle due
          # to replacements depending on the llvm outpath (e.g. the LLVMgold patch).
@@ -532,7 +534,8 @@ let
            # libraries. eg: `clang -munsupported hello.c -lc`
            ./clang/clang-unsupported-option.patch
          ]
          ++ lib.optional (lib.versions.major metadata.release_version == "13")
          ++
            lib.optional (lib.versions.major metadata.release_version == "13")
              # Revert of https://reviews.llvm.org/D100879
              # The malloc alignment assumption is incorrect for jemalloc and causes
              # mis-compilation in firefox.