From 4322cf56b15a0a088156f5702d44a04e8238b4b3 Mon Sep 17 00:00:00 2001 From: eugeneswalker <38933153+eugeneswalker@users.noreply.github.com> Date: Fri, 8 Nov 2024 14:12:50 -0800 Subject: upcxx %oneapi@2025: cxxflags add -Wno-error=missing-template-arg-list-after-template-kw (#47503) --- var/spack/repos/builtin/packages/upcxx/package.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'var') diff --git a/var/spack/repos/builtin/packages/upcxx/package.py b/var/spack/repos/builtin/packages/upcxx/package.py index 9197102568..4e23f42431 100644 --- a/var/spack/repos/builtin/packages/upcxx/package.py +++ b/var/spack/repos/builtin/packages/upcxx/package.py @@ -164,7 +164,11 @@ class Upcxx(Package, CudaPackage, ROCmPackage): depends_on("oneapi-level-zero@1.8.0:", when="+level_zero") # All flags should be passed to the build-env in autoconf-like vars - flag_handler = env_flags + def flag_handler(self, name, flags): + if name == "cxxflags": + if self.spec.satisfies("%oneapi@2025:"): + flags.append("-Wno-error=missing-template-arg-list-after-template-kw") + return (flags, None, None) def set_variables(self, env): env.set("UPCXX_INSTALL", self.prefix) -- cgit v1.2.3-70-g09d2