Skip to content

Commit 44e882c

Browse files
committed
Rollup merge of rust-lang#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` ```
2 parents 3de1f8b + 0dde8cd commit 44e882c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bootstrap/bootstrap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ def program_config(self, program):
532532
"""
533533
config = self.get_toml(program)
534534
if config:
535-
return config
535+
return os.path.expanduser(config)
536536
return os.path.join(self.bin_root(), "bin", "{}{}".format(
537537
program, self.exe_suffix()))
538538

0 commit comments

Comments
 (0)