···
tblgen = callPackage ./tblgen.nix {
510
-
patches = builtins.filter
511
-
# Crude method to drop polly patches if present, they're not needed for tblgen.
512
-
(p: (!lib.hasInfix "-polly" p)) tools.libllvm.patches;
512
+
# Crude method to drop polly patches if present, they're not needed for tblgen.
513
+
(p: (!lib.hasInfix "-polly" p))
514
+
tools.libllvm.patches;
# Would take tools.libclang.patches, but this introduces a cycle due
# to replacements depending on the llvm outpath (e.g. the LLVMgold patch).
···
# libraries. eg: `clang -munsupported hello.c -lc`
./clang/clang-unsupported-option.patch
535
-
++ lib.optional (lib.versions.major metadata.release_version == "13")
536
-
# Revert of https://reviews.llvm.org/D100879
537
-
# The malloc alignment assumption is incorrect for jemalloc and causes
538
-
# mis-compilation in firefox.
539
-
# See: https://bugzilla.mozilla.org/show_bug.cgi?id=1741454
540
-
(metadata.getVersionFile "clang/revert-malloc-alignment-assumption.patch")
538
+
lib.optional (lib.versions.major metadata.release_version == "13")
539
+
# Revert of https://reviews.llvm.org/D100879
540
+
# The malloc alignment assumption is incorrect for jemalloc and causes
541
+
# mis-compilation in firefox.
542
+
# See: https://bugzilla.mozilla.org/show_bug.cgi?id=1741454
543
+
(metadata.getVersionFile "clang/revert-malloc-alignment-assumption.patch")
++ lib.optional (lib.versionOlder metadata.release_version "17") (
if lib.versionAtLeast metadata.release_version "14" then
···
lldbPlugins = lib.makeExtensible (
669
-
callPackage = newScope ( lldbPlugins // tools // args // metadata );
672
+
callPackage = newScope (lldbPlugins // tools // args // metadata);
lib.recurseIntoAttrs { llef = callPackage ./lldb-plugins/llef.nix { }; }