summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDenis Davydov <davydden@gmail.com>2016-05-03 19:04:42 +0200
committerDenis Davydov <davydden@gmail.com>2016-05-05 10:44:41 +0200
commitddcb97f9531c65bfc370177dfd2090c9e82a4cb3 (patch)
tree3db2d0563d0c9961425a26a698ecb421dc4264b2 /lib
parent473a5542bed01e2f70370ddd5ceb70ac41fe178e (diff)
downloadspack-ddcb97f9531c65bfc370177dfd2090c9e82a4cb3.tar.gz
spack-ddcb97f9531c65bfc370177dfd2090c9e82a4cb3.tar.bz2
spack-ddcb97f9531c65bfc370177dfd2090c9e82a4cb3.tar.xz
spack-ddcb97f9531c65bfc370177dfd2090c9e82a4cb3.zip
add a temporary Nag.cxx11_flag property
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/compilers/nag.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/spack/spack/compilers/nag.py b/lib/spack/spack/compilers/nag.py
index bbc291d7b6..e9038c1039 100644
--- a/lib/spack/spack/compilers/nag.py
+++ b/lib/spack/spack/compilers/nag.py
@@ -25,6 +25,11 @@ class Nag(Compiler):
def openmp_flag(self):
return "-openmp"
+ @property
+ def cxx11_flag(self):
+ # NAG does not have a C++ compiler
+ # However, it can be mixed with a compiler that does support it
+ return "-std=c++11"
@classmethod
def default_version(self, comp):