compiler: simplify Clang.is_apple

This commit is contained in:
Denis Davydov 2016-05-03 17:09:49 +02:00
parent f2f1c49c90
commit 6a418cfb8d

View File

@ -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):