From 9b3c4e0696a9f90ac0870c32b0ef9dad1b529583 Mon Sep 17 00:00:00 2001 From: luker Date: Tue, 14 Feb 2023 01:37:34 -0600 Subject: [PATCH] Update cce.py (#35469) * Update cce.py adding c++17 flag for cce * Update cce.py --- lib/spack/spack/compilers/cce.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/spack/spack/compilers/cce.py b/lib/spack/spack/compilers/cce.py index eee78f5455..2bc00ec7f5 100644 --- a/lib/spack/spack/compilers/cce.py +++ b/lib/spack/spack/compilers/cce.py @@ -89,6 +89,11 @@ def cxx14_flag(self): return "-std=c++14" return "-h std=c++14" + @property + def cxx17_flag(self): + if self.is_clang_based: + return "-std=c++17" + @property def c99_flag(self): if self.is_clang_based: