]> git.lizzy.rs Git - rust.git/commit
bootstrap/install.rs: support a nonexistent `prefix` in `x.py install`
authorNODA, Kai <nodakai@gmail.com>
Sun, 14 Jun 2020 18:11:35 +0000 (02:11 +0800)
committerNODA, Kai <nodakai@gmail.com>
Mon, 15 Jun 2020 16:12:47 +0000 (00:12 +0800)
commit8e7606f204d8775b051cdd9a427ec6dd89b837b8
treee29d07069562e2f2dee12c39bcdb64a4b592de18
parentff4a2533a0720f9cdd86e02eafa3725f07aa7752
bootstrap/install.rs: support a nonexistent `prefix` in `x.py install`

PR #49778 introduced fs::canonicalize() which fails for a nonexistent path.
This is a surprise for someone used to GNU Autotools' configure which can create any necessary intermediate directories in prefix.

This change makes it run fs::create_dir_all() before canonicalize().
src/bootstrap/install.rs