From e53a19a08d7be15f762e6115745b05f88058fc9f Mon Sep 17 00:00:00 2001 From: Mikael Simberg Date: Tue, 8 Nov 2022 21:14:14 +0100 Subject: Patch `fmt` for hipcc/dpcpp (#33733) * Patch fmt for hipcc/dpcpp * Add msimberg as fmt maintainer --- var/spack/repos/builtin/packages/fmt/package.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'var') diff --git a/var/spack/repos/builtin/packages/fmt/package.py b/var/spack/repos/builtin/packages/fmt/package.py index 7a79ad0da6..0c51c1a5af 100644 --- a/var/spack/repos/builtin/packages/fmt/package.py +++ b/var/spack/repos/builtin/packages/fmt/package.py @@ -13,6 +13,7 @@ class Fmt(CMakePackage): homepage = "https://fmt.dev/" url = "https://github.com/fmtlib/fmt/releases/download/7.1.3/fmt-7.1.3.zip" + maintainers = ["msimberg"] version("9.1.0", sha256="cceb4cb9366e18a5742128cb3524ce5f50e88b476f1e54737a47ffdf4df4c996") version("9.0.0", sha256="fc96dd2d2fdf2bded630787adba892c23cb9e35c6fd3273c136b0c57d4651ad6") @@ -70,6 +71,13 @@ class Fmt(CMakePackage): # Only allow [[attributes]] on C++11 and higher patch("fmt-attributes-cpp11_4.1.0.patch", when="@4.1.0") + # Fix compilation with hipcc/dpcpp: https://github.com/fmtlib/fmt/issues/3005 + patch( + "https://github.com/fmtlib/fmt/commit/0b0f7cfbfcebd021c910078003d413354bd843e2.patch?full_index=1", + sha256="08fb707bf8b4fc890d6eed29217ead666558cbae38f9249e22ddb82212f0eb4a", + when="@9.0.0:9.1.0", + ) + def cmake_args(self): spec = self.spec args = [] -- cgit v1.2.3-70-g09d2