Skip to content

Commit

Permalink
upcxx %oneapi@2025: cxxflags add -Wno-error=missing-template-arg-list…
Browse files Browse the repository at this point in the history
…-after-template-kw (spack#47503)
  • Loading branch information
eugeneswalker authored Nov 8, 2024
1 parent 907a371 commit 4322cf5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion var/spack/repos/builtin/packages/upcxx/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4322cf5

Please sign in to comment.