martine/ninja — pull request #698 by mostynb (2014-01-07 10:19:45+00:00)
Title: don't fail if trying to mkdir when the dir already exists

When ninja tries to do the equivalent of "mkdir -p", it will fail if another process (or possibly another ninja task) creates one of the intermediate dirs in the meantime. This can be quite annoying, but it's fairly simple to catch.

NinjaMain::EnsureBuildDirExists doesn't fail in case of EEXIST (the check would be redundant if this patch is landed), but Builder::StartEdge does. Perhaps we should just check for EEXIST in Builder::StartEdge?