mirror of
https://github.com/zebrajr/tensorflow.git
synced 2026-01-15 12:15:41 +00:00
resolve gcc_host_compiler_path in a symlink directory
Resolves a missing dependency declarations error, when gcc_host_compiler_path is in a symlink directory resolving to other directories.
This commit is contained in:
@@ -619,7 +619,7 @@ def prompt_loop_or_load_from_env(environ_cp,
|
|||||||
'Assuming to be a scripting mistake.' %
|
'Assuming to be a scripting mistake.' %
|
||||||
(var_name, n_ask_attempts))
|
(var_name, n_ask_attempts))
|
||||||
|
|
||||||
if resolve_symlinks and os.path.islink(val):
|
if resolve_symlinks:
|
||||||
val = os.path.realpath(val)
|
val = os.path.realpath(val)
|
||||||
environ_cp[var_name] = val
|
environ_cp[var_name] = val
|
||||||
return val
|
return val
|
||||||
|
|||||||
Reference in New Issue
Block a user