Rollup merge of #45375 - topecongiro:enable-tilde, r=Mark-Simulacrum
Allow passing a path with tilde to the configure script Currently `./configure --local-rust-root=~/.cargo --enable-local-rebuild` fails with ``` Exception: no cargo executable found at `~/.cargo//bin/cargo` ```
This commit is contained in:
commit
44e882cf92
1 changed files with 1 additions and 1 deletions
|
@ -532,7 +532,7 @@ class RustBuild(object):
|
|||
"""
|
||||
config = self.get_toml(program)
|
||||
if config:
|
||||
return config
|
||||
return os.path.expanduser(config)
|
||||
return os.path.join(self.bin_root(), "bin", "{}{}".format(
|
||||
program, self.exe_suffix()))
|
||||
|
||||
|
|
Loading…
Reference in a new issue