Subject: [PATCH] gnu: lldb: Update to 14.0.6.

From: Greg Hogan <[email-masked]>
Date: Tue, 26 Jul 2022 17:04:48 +0000

* gnu/packages/llvm.scm (lldb): Update to 14.0.6.
[source]: Fetch using LLVM-MONOREPO.
[phases]: Add phase to change to source subdirectory.
[inputs]: Change from LLVM-13 and CLANG-13 to LLVM-14 and CLANG-14.
---
 gnu/packages/llvm.scm | 21 +++++++++++----------
 1 file changed, 11 insertions(+), 10 deletions(-)

diff --git a/gnu/packages/llvm.scm b/gnu/packages/llvm.scm
index 5a2f411eb2..2a139f0471 100644
--- a/gnu/packages/llvm.scm
+++ b/gnu/packages/llvm.scm
@@ -1374,21 +1374,22 @@ (define-public lld-as-ld-wrapper
 (define-public lldb
   (package
     (name "lldb")
-    (version "13.0.1")
-    (source (origin
-              (method url-fetch)
-              (uri (llvm-uri "lldb" version))
-              (sha256
-               (base32
-                "05nvcbgb4rx860r3jzsbpvcbzpd0i7nsm5qrpkyfhg5vrh5mj32a"))))
+    (version "14.0.6")
+    (source (llvm-monorepo version))
     (build-system cmake-build-system)
     (arguments
-     `(#:configure-flags '("-DCMAKE_CXX_COMPILER=clang++")))
+     (list
+       #:configure-flags #~(list "-DOPENMP_TEST_CXX_COMPILER=clang++")
+       #:phases
+       #~(modify-phases %standard-phases
+         (add-after 'unpack 'chdir-to-source
+           (lambda _
+             (chdir "lldb"))))))
     (native-inputs
      (list pkg-config swig))
     (inputs
-     (list clang-13
-           llvm-13
+     (list clang-14
+           llvm-14
            ;; Optional (but recommended) inputs.
            ncurses
            libedit
-- 
2.37.1