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:
Jinzhe Zeng
2022-06-04 19:06:58 -04:00
committed by GitHub
parent 72177a67c2
commit b3a8fdbcb7

View File

@@ -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