mirror of
https://github.com/zebrajr/tensorflow.git
synced 2026-01-15 12:15:41 +00:00
Update configure.py to support pre-release versions of clang
This commit is contained in:
@@ -864,12 +864,16 @@ def retrieve_clang_version(clang_executable):
|
||||
|
||||
curr_version_split = curr_version.lower().split('clang version ')
|
||||
if len(curr_version_split) > 1:
|
||||
curr_version = curr_version_split[1].split()[0]
|
||||
curr_version = curr_version_split[1].split()[0].split('git')
|
||||
|
||||
if len(curr_version) > 1:
|
||||
print('WARNING: current clang installation is not a release version.\n')
|
||||
|
||||
curr_version = curr_version[0]
|
||||
curr_version_int = convert_version_to_int(curr_version)
|
||||
# Check if current clang version can be detected properly.
|
||||
if not curr_version_int:
|
||||
print('WARNING: current clang installation is not a release version.\n')
|
||||
print('WARNING: current clang installation version unknown.\n')
|
||||
return None
|
||||
|
||||
print('You have Clang %s installed.\n' % curr_version)
|
||||
|
||||
Reference in New Issue
Block a user