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 faf9b8ce85.

* Apply workaround for oneAPI compiler

* style problem resolved

* use spec.satisfies syntax

---------

Co-authored-by: eugeneswalker <eugenesunsetwalker@gmail.com>
This commit is contained in:
Piotr Sacharuk 2025-02-04 09:26:44 +01:00 committed by GitHub
parent 0049f8332d
commit 01d77ed915
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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: