]> git.lizzy.rs Git - rust.git/commit
Auto merge of #40337 - alexcrichton:racy-dirs, r=brson
authorbors <bors@rust-lang.org>
Thu, 9 Mar 2017 06:06:34 +0000 (06:06 +0000)
committerbors <bors@rust-lang.org>
Thu, 9 Mar 2017 06:06:34 +0000 (06:06 +0000)
commit5c9208faf1f180cd15cf93f74f1e57b24856d11e
tree0d6cd4274d9abf0a976baea94459942a34155b8e
parent758f37480be34e657abd3870c863e6e7edb1cd30
parente412af2a887da25c987d4ca367b7b471b6c5fb55
Auto merge of #40337 - alexcrichton:racy-dirs, r=brson

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.