summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/compilers/clang.py7
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: