diff options
author | Denis Davydov <davydden@gmail.com> | 2016-05-03 11:26:03 +0200 |
---|---|---|
committer | Denis Davydov <davydden@gmail.com> | 2016-05-05 10:44:41 +0200 |
commit | 3cd3052c564451f375977522e23a458edd25611a (patch) | |
tree | 05333c75c5c5c0b90edd5b0c66340a9405f4b248 /lib | |
parent | c078deaab1d62d881bbed8efece779ca01c504c7 (diff) | |
download | spack-3cd3052c564451f375977522e23a458edd25611a.tar.gz spack-3cd3052c564451f375977522e23a458edd25611a.tar.bz2 spack-3cd3052c564451f375977522e23a458edd25611a.tar.xz spack-3cd3052c564451f375977522e23a458edd25611a.zip |
compilers: minor fixes to Clang::cxx11_flag() and Clang::openmp_flag()
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/compilers/clang.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/spack/spack/compilers/clang.py b/lib/spack/spack/compilers/clang.py index 799b92b20d..1f0eda3220 100644 --- a/lib/spack/spack/compilers/clang.py +++ b/lib/spack/spack/compilers/clang.py @@ -51,15 +51,16 @@ class Clang(Compiler): @property def openmp_flag(self): - ver = '%s' % self.version - if ver.endswith('-apple'): + ver_string = '%s' % self.version + if ver_string.endswith('-apple'): tty.die("Clang from Apple does not support Openmp yet.") else: return "-fopenmp" @property def cxx11_flag(self): - if ver.endswith('-apple'): + ver_string = '%s' % self.version + if ver_string.endswith('-apple'): # FIXME: figure out from which version Apple's clang supports c++11 return "-std=c++11" else: |