compiler: simplify Clang.is_apple
This commit is contained in:
parent
f2f1c49c90
commit
6a418cfb8d
@ -51,11 +51,8 @@ class Clang(Compiler):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def is_apple(self):
|
def is_apple(self):
|
||||||
ver_string = '%s' % self.version
|
ver_string = str(self.version)
|
||||||
if ver_string.endswith('-apple'):
|
return ver_string.endswith('-apple')
|
||||||
return True
|
|
||||||
else:
|
|
||||||
return False
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def openmp_flag(self):
|
def openmp_flag(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user