Skip to content

Commit 6dfb786

Browse files
committed
use spec.satisfies syntax
1 parent 47dddf9 commit 6dfb786

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

var/spack/repos/builtin/packages/upcxx/package.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ def install(self, spec, prefix):
194194
if env.get("LDLIBS"):
195195
env["LIBS"] = env["LDLIBS"]
196196

197-
if self.compiler.name == "oneapi" and self.compiler.version >= Version("2025.0.0"):
197+
if spec.satisfies("%oneapi@2025:"):
198198
env["CXXFLAGS"] = (
199199
"-Wno-error=missing-template-arg-list-after-template-kw "
200200
"-Wno-missing-template-arg-list-after-template-kw"

0 commit comments

Comments
 (0)