From 5e94ffedee7a412914b8602981095e2d4249bb17 Mon Sep 17 00:00:00 2001 From: Patrick Gartung Date: Thu, 3 Oct 2024 14:27:20 -0500 Subject: [PATCH] Try to patch llvm again --- var/spack/repos/builtin/packages/llvm/package.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/var/spack/repos/builtin/packages/llvm/package.py b/var/spack/repos/builtin/packages/llvm/package.py index b14935f6e60762..9067df2f8e2b1a 100644 --- a/var/spack/repos/builtin/packages/llvm/package.py +++ b/var/spack/repos/builtin/packages/llvm/package.py @@ -627,13 +627,12 @@ def patch(self): string=True, ) - @when("@14.0.6") + @when("@14.0.6:") def patch(self): filter_file( - r"#include ", - "#include \n#include", + r"int main", + "#include \nint main", "llvm/cmake/modules/FindZ3.cmake", - string=True, ) compiler_version_regex = (