Subject: [PATCH] gnu: clang-runtime: Fix build for versions 10 and 11.
From: Nicolas Graves <[email-masked]>
To: [email-masked]
Cc: Nicolas Graves <[email-masked]>
Date: Tue, 19 Nov 2024 08:26:57 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

* gnu/packages/llvm.scm (clang-runtime-from-llvm)[inputs]: Add
libxcrypt for versions 10 and 11.
---
 gnu/packages/llvm.scm | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/gnu/packages/llvm.scm b/gnu/packages/llvm.scm
index c6566a3339..e2b8b689ba 100644
--- a/gnu/packages/llvm.scm
+++ b/gnu/packages/llvm.scm
@@ -170,6 +170,9 @@ (define* (clang-runtime-from-llvm llvm
       (list llvm)
       (if (version>=? version "15")
           (list libffi)
+          '())
+      (if (member (version-major version) (list "10" "11"))
+          (list libxcrypt)
           '())))
     (arguments
      `(;; Don't use '-g' during the build to save space.
-- 
2.46.0