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:
kennytm 2017-10-19 23:13:31 +08:00
commit 44e882cf92
No known key found for this signature in database
GPG key ID: FEF6C8051D0E013C

View file

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