]> git.lizzy.rs Git - rust.git/commit
rustbuild: Assert directory creation succeeds
authorAlex Crichton <alex@alexcrichton.com>
Tue, 7 Mar 2017 23:24:36 +0000 (15:24 -0800)
committerAlex Crichton <alex@alexcrichton.com>
Tue, 7 Mar 2017 23:24:36 +0000 (15:24 -0800)
commite412af2a887da25c987d4ca367b7b471b6c5fb55
tree3dcb7d9de3e8c3a8bcef207ea4d8eac8b14e1596
parentb04ebef43242ade6be8968694caf56a0fb00a4d3
rustbuild: Assert directory creation succeeds

I've been seeing failures on the bots when building jemalloc and my assumption
is that it's because cwd isn't created. That may be possible if this
`create_dir_all` call change in this commit fails, in which case we ignore the
error.

This commit updates the location to call `create_dir_racy` which handles
concurrent invocations, as multiple build scripts may be trying to create the
`native` dir.
src/build_helper/lib.rs