Skip to content

Commit

Permalink
clang_18: Upstream patch to fix an ICE
Browse files Browse the repository at this point in the history
See llvm/llvm-project#93206.

Co-authored-by: Alyssa Ross <[email protected]>
  • Loading branch information
tobim and alyssais committed Jul 5, 2024
1 parent 0c771ce commit da06c32
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion pkgs/development/compilers/llvm/18/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{ lowPrio, newScope, pkgs, lib, stdenv
, preLibcCrossHeaders
, substitute, substituteAll, fetchFromGitHub
, substitute, substituteAll, fetchFromGitHub, fetchpatch
, overrideCC, wrapCCWith, wrapBintoolsWith
, buildLlvmTools # tools, but from the previous stage, for cross
, targetLlvmLibraries # libraries, but from the next stage, for cross
Expand Down Expand Up @@ -156,6 +156,14 @@ in let
src = ../common/clang/clang-at-least-16-LLVMgold-path.patch;
libllvmLibdir = "${tools.libllvm.lib}/lib";
})
(fetchpatch {
name = "tweak-tryCaptureVariable-for-unevaluated-lambdas.patch";
url = "https://github.com/llvm/llvm-project/commit/3d361b225fe89ce1d8c93639f27d689082bd8dad.patch";
# TreeTransform.h is not affected in LLVM 18.
excludes = ["docs/ReleaseNotes.rst" "lib/Sema/TreeTransform.h"];
stripLen = 1;
hash = "sha256-1NKej08R9SPlbDY/5b0OKUsHjX07i9brR84yXiPwi7E=";
})
];
};

Expand Down

0 comments on commit da06c32

Please sign in to comment.