compiler: simplify Clang.is_apple
This commit is contained in:
parent
f2f1c49c90
commit
6a418cfb8d
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user