mirror of https://github.com/Jittor/Jittor
avoid unknown cc
This commit is contained in:
parent
28ab13d804
commit
5fd890afa2
|
@ -250,8 +250,8 @@ def get_version(output):
|
||||||
if len(v) == 0:
|
if len(v) == 0:
|
||||||
v = re.findall("[0-9]+\\.[0-9]+", version)
|
v = re.findall("[0-9]+\\.[0-9]+", version)
|
||||||
assert len(v) != 0, f"Can not find version number from: {version}"
|
assert len(v) != 0, f"Can not find version number from: {version}"
|
||||||
if get_cc_type(output) == 'clang':
|
if 'clang' in version and platform.system() == 'Darwin':
|
||||||
version = "("+v[0]+")"
|
version = "("+v[-3]+")"
|
||||||
else:
|
else:
|
||||||
version = "("+v[-1]+")"
|
version = "("+v[-1]+")"
|
||||||
return version
|
return version
|
||||||
|
|
Loading…
Reference in New Issue