diff --git a/var/spack/repos/builtin/packages/llvm/package.py b/var/spack/repos/builtin/packages/llvm/package.py index fbd244e8257072..6606feb43e3312 100644 --- a/var/spack/repos/builtin/packages/llvm/package.py +++ b/var/spack/repos/builtin/packages/llvm/package.py @@ -617,6 +617,8 @@ class Llvm(CMakePackage, CudaPackage, LlvmDetection, CompilerPackage): patch("sanitizer-platform-limits-posix-xdr-macos.patch", when="@10:14 platform=darwin") + patch("llvm-cmake-modules-FindZ3.patch", when="@14.0.6") + @when("@14:17") def patch(self): # https://github.com/llvm/llvm-project/pull/69458 @@ -627,7 +629,6 @@ def patch(self): string=True, ) - patch('llvm-cmake-modules-FindZ3.patch', when="@14.0.6") compiler_version_regex = ( # Normal clang compiler versions are left as-is