From 7d250c4bea152388633b560c1d9683b74d6e32e9 Mon Sep 17 00:00:00 2001 From: Wouter Deconinck Date: Mon, 19 Sep 2022 13:32:47 -0500 Subject: [PATCH] root: determine_variants cxxstd=20 support (#32673) This is somewhat ahead of reality, but once/when external ROOT installs with cxxstd=20 are common, we will need this to pick up the correct variant. --- var/spack/repos/builtin/packages/root/package.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/var/spack/repos/builtin/packages/root/package.py b/var/spack/repos/builtin/packages/root/package.py index 3900dad876..4b421b04f4 100644 --- a/var/spack/repos/builtin/packages/root/package.py +++ b/var/spack/repos/builtin/packages/root/package.py @@ -334,6 +334,8 @@ def determine_variants(cls, exes, version_str): v.append("cxxstd=14") elif "cxx17" in f: v.append("cxxstd=17") + elif "cxx20" in f: + v.append("cxxstd=20") # helper function: check if featurename is in features, and if it is, # append variantname to variants. featurename may be a list/tuple, in