summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDenis Davydov <davydden@gmail.com>2016-05-05 10:48:31 +0200
committerDenis Davydov <davydden@gmail.com>2016-05-05 10:48:31 +0200
commitf84f04591be44ba6c1aa5bef50d5efa872cfb1c9 (patch)
tree60ee5f24e8e220e063df06e41f11aaba739ffc44 /lib
parentc6fb6bde40798903dcdd5d503c32368068a0f8e4 (diff)
downloadspack-f84f04591be44ba6c1aa5bef50d5efa872cfb1c9.tar.gz
spack-f84f04591be44ba6c1aa5bef50d5efa872cfb1c9.tar.bz2
spack-f84f04591be44ba6c1aa5bef50d5efa872cfb1c9.tar.xz
spack-f84f04591be44ba6c1aa5bef50d5efa872cfb1c9.zip
substitute cxx14_flag by a property with the same name to be overridden in derived classes
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/compiler.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/lib/spack/spack/compiler.py b/lib/spack/spack/compiler.py
index 42529777bc..a28d7302aa 100644
--- a/lib/spack/spack/compiler.py
+++ b/lib/spack/spack/compiler.py
@@ -94,9 +94,6 @@ class Compiler(object):
# Names of generic arguments used by this compiler
arg_rpath = '-Wl,-rpath,%s'
- # argument used to get C++14 options
- cxx14_flag = "-std=c++1y"
-
def __init__(self, cspec, cc, cxx, f77, fc):
def check(exe):
@@ -132,6 +129,14 @@ class Compiler(object):
# If it is not overridden, assume it is not supported and warn the user
tty.die("The compiler you have chosen does not currently support C++11. If you think it should, please edit the compiler subclass and submit a pull request or issue.")
+ # This property should be overridden in the compiler subclass if
+ # C++14 is supported by that compiler
+ @property
+ def cxx14_flag(self):
+ # If it is not overridden, assume it is not supported and warn the user
+ tty.die("The compiler you have chosen does not currently support C++14. If you think it should, please edit the compiler subclass and submit a pull request or issue.")
+
+
#
# Compiler classes have methods for querying the version of
# specific compiler executables. This is used when discovering compilers.