summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorluker <luke.roskop@hpe.com>2023-02-14 01:37:34 -0600
committerGitHub <noreply@github.com>2023-02-14 07:37:34 +0000
commit9b3c4e0696a9f90ac0870c32b0ef9dad1b529583 (patch)
treea901159a45f2e8c356f351492405be05ab50b768 /lib
parent54f783e656c123a6fbc956bbd005093723fb40d3 (diff)
downloadspack-9b3c4e0696a9f90ac0870c32b0ef9dad1b529583.tar.gz
spack-9b3c4e0696a9f90ac0870c32b0ef9dad1b529583.tar.bz2
spack-9b3c4e0696a9f90ac0870c32b0ef9dad1b529583.tar.xz
spack-9b3c4e0696a9f90ac0870c32b0ef9dad1b529583.zip
Update cce.py (#35469)
* Update cce.py adding c++17 flag for cce * Update cce.py
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/compilers/cce.py5
1 files changed, 5 insertions, 0 deletions
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
@@ -90,6 +90,11 @@ class Cce(Compiler):
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:
return "-std=c99"