From 2db5b1784e95352f86f34e91ca2bb702419b4623 Mon Sep 17 00:00:00 2001
From: Eleni Mathioulaki <emathioulaki@athenarc.gr>
Date: Tue, 27 Jun 2023 00:39:13 +0200
Subject: [PATCH] constrain swig version to fix llvm build issue

---
 packages/llvm/package.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/packages/llvm/package.py b/packages/llvm/package.py
index b2a923cc..9a692f8d 100644
--- a/packages/llvm/package.py
+++ b/packages/llvm/package.py
@@ -284,7 +284,8 @@ class Llvm(CMakePackage, CudaPackage):
 
     # lldb dependencies
     with when("+lldb +python"):
-        depends_on("swig")
+        # build fails with swig@4.1: https://github.com/llvm/llvm-project/issues/58018
+        depends_on("swig@:4.0")
         depends_on("swig@2:", when="@10:")
         depends_on("swig@3:", when="@12:")
     depends_on("libedit", when="+lldb")
-- 
GitLab