diff options
author | Denis Davydov <davydden@gmail.com> | 2016-05-03 17:09:49 +0200 |
---|---|---|
committer | Denis Davydov <davydden@gmail.com> | 2016-05-05 10:44:41 +0200 |
commit | 6a418cfb8d60a26d1195aeb74b2d54ae9cb38616 (patch) | |
tree | e1fc1e5d01242d631a7f6a966fedea4e9b15c817 /lib | |
parent | f2f1c49c90de5c1b620d7bdb7cd5ff85173fcb22 (diff) | |
download | spack-6a418cfb8d60a26d1195aeb74b2d54ae9cb38616.tar.gz spack-6a418cfb8d60a26d1195aeb74b2d54ae9cb38616.tar.bz2 spack-6a418cfb8d60a26d1195aeb74b2d54ae9cb38616.tar.xz spack-6a418cfb8d60a26d1195aeb74b2d54ae9cb38616.zip |
compiler: simplify Clang.is_apple
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/compilers/clang.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/spack/spack/compilers/clang.py b/lib/spack/spack/compilers/clang.py index a6c9a69505..8c646905c7 100644 --- a/lib/spack/spack/compilers/clang.py +++ b/lib/spack/spack/compilers/clang.py @@ -51,11 +51,8 @@ class Clang(Compiler): @property def is_apple(self): - ver_string = '%s' % self.version - if ver_string.endswith('-apple'): - return True - else: - return False + ver_string = str(self.version) + return ver_string.endswith('-apple') @property def openmp_flag(self): |