mirror of
https://github.com/zebrajr/tensorflow.git
synced 2026-01-15 12:15:41 +00:00
Improve linker version detection in configure.py
This commit is contained in:
@@ -1236,9 +1236,14 @@ def main():
|
||||
# Get the linker version
|
||||
ld_version = run_shell([gcc_env, '-Wl,-version']).split()
|
||||
|
||||
ld_version_int = convert_version_to_int(ld_version[3])
|
||||
ld_version_int = 0
|
||||
for i in range(len(ld_version)):
|
||||
ld_version_int = convert_version_to_int(ld_version[i])
|
||||
if ld_version_int is not None:
|
||||
break
|
||||
|
||||
if ld_version_int is None:
|
||||
ld_version_int = convert_version_to_int(ld_version[4])
|
||||
ld_version_int = 0
|
||||
|
||||
# Enable if 'ld' version >= 2.35
|
||||
if ld_version_int >= 2035000:
|
||||
|
||||
Reference in New Issue
Block a user