From 7bb07f13a6b988c5e1eb7b88800a0e07d465e7f8 Mon Sep 17 00:00:00 2001 From: Reno Dakota Date: Tue, 14 Jan 2025 21:34:50 -0800 Subject: [PATCH] llvmPackages_{12,13,14,15,16}.lldb: fix build with clang-19 https://github.com/llvm/llvm-project/commit/73e15b5edb4fa4a77e68c299a6e3b21e610d351f --- pkgs/development/compilers/llvm/common/default.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/pkgs/development/compilers/llvm/common/default.nix b/pkgs/development/compilers/llvm/common/default.nix index 9a8b795bdea2..76dc2944ba49 100644 --- a/pkgs/development/compilers/llvm/common/default.nix +++ b/pkgs/development/compilers/llvm/common/default.nix @@ -707,7 +707,15 @@ let stripLen = 1; hash = "sha256-QCGhsL/mi7610ZNb5SqxjRGjwJeK2rwtsFVGeG3PUGc="; }) - ++ lib.optional (lib.versionOlder metadata.release_version "17") resourceDirPatch + ++ lib.optionals (lib.versionOlder metadata.release_version "17") [ + resourceDirPatch + (fetchpatch { + name = "add-cstdio.patch"; + url = "https://github.com/llvm/llvm-project/commit/73e15b5edb4fa4a77e68c299a6e3b21e610d351f.patch"; + stripLen = 1; + hash = "sha256-eFcvxZaAuBsY/bda1h9212QevrXyvCHw8Cr9ngetDr0="; + }) + ] ++ lib.optional (lib.versionOlder metadata.release_version "14") ( metadata.getVersionFile "lldb/gnu-install-dirs.patch" )