From 01d77ed91524b2583909163fefc5b92818fee174 Mon Sep 17 00:00:00 2001 From: Piotr Sacharuk <107190444+PiotrSacharuk@users.noreply.github.com> Date: Tue, 4 Feb 2025 09:26:44 +0100 Subject: [PATCH] Apply workaround for oneAPI compiler for upcxx problem with a template argument list (#48843) * Fix upcxx problem with a template argument list is expected after a name prefixed by the template keyword * Revert "Fix upcxx problem with a template argument list is expected after a name prefixed by the template keyword" This reverts commit faf9b8ce850dbb4c38a5019a7071415e3c6dc086. * Apply workaround for oneAPI compiler * style problem resolved * use spec.satisfies syntax --------- Co-authored-by: eugeneswalker --- var/spack/repos/builtin/packages/upcxx/package.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/var/spack/repos/builtin/packages/upcxx/package.py b/var/spack/repos/builtin/packages/upcxx/package.py index de6a43a7086..fe5fee91e14 100644 --- a/var/spack/repos/builtin/packages/upcxx/package.py +++ b/var/spack/repos/builtin/packages/upcxx/package.py @@ -194,6 +194,12 @@ def install(self, spec, prefix): if env.get("LDLIBS"): env["LIBS"] = env["LDLIBS"] + if spec.satisfies("%oneapi@2025:"): + env["CXXFLAGS"] = ( + "-Wno-error=missing-template-arg-list-after-template-kw " + "-Wno-missing-template-arg-list-after-template-kw" + ) + options = ["--prefix=%s" % prefix] if "cross=none" in spec: