summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--var/spack/repos/builtin/packages/fmt/package.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/fmt/package.py b/var/spack/repos/builtin/packages/fmt/package.py
index 21c5fa5c5b..27e542666f 100644
--- a/var/spack/repos/builtin/packages/fmt/package.py
+++ b/var/spack/repos/builtin/packages/fmt/package.py
@@ -84,6 +84,13 @@ class Fmt(CMakePackage):
when="@9.0.0:9.1.0",
)
+ # Fix compilation with clang in CUDA mode: https://github.com/fmtlib/fmt/issues/3740
+ patch(
+ "https://github.com/fmtlib/fmt/commit/89860eb9013a345608c8144b1aad5f12b0682d7e.patch?full_index=1",
+ sha256="6ef12fe60a2b3625139c6d29c748dafd81b51e2a0690c1fa37604ed5b15615e0",
+ when="@10.0.0:10.1.1",
+ )
+
def cmake_args(self):
spec = self.spec
args = []