Skip to content

Commit 6a47562

Browse files
author
Matthias Wittgen
committed
Enable C++20 support
1 parent a067d4d commit 6a47562

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

python/lsst/sconsUtils/state.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -548,19 +548,19 @@ def ClassifyCc(context):
548548
env.Append(LINKFLAGS="--coverage")
549549

550550
#
551-
# Enable C++17 support
551+
# Enable C++20 support
552552
#
553553
if not (env.GetOption("clean") or env.GetOption("help") or env.GetOption("no_exec")):
554554
if not env.GetOption("no_progress"):
555-
log.info("Checking for C++17 support")
555+
log.info("Checking for C++20 support")
556556
conf = env.Configure()
557-
for cpp17Arg in (f"-std={val}" for val in ("c++17",)):
557+
for cpp20Arg in (f"-std={val}" for val in ("c++20",)):
558558
conf.env = env.Clone()
559-
conf.env.Append(CXXFLAGS=cpp17Arg)
559+
conf.env.Append(CXXFLAGS=cpp20Arg)
560560
if conf.CheckCXX():
561-
env.Append(CXXFLAGS=cpp17Arg)
561+
env.Append(CXXFLAGS=cpp20Arg)
562562
if not env.GetOption("no_progress"):
563-
log.info(f"C++17 supported with {cpp17Arg!r}")
563+
log.info(f"C++20 supported with {cpp20Arg!r}")
564564
break
565565
else:
566566
log.fail(f"C++17 extensions could not be enabled for compiler {env.whichCc!r}")

0 commit comments

Comments
 (0)