builder: fixed a problem with multiple process build cases (cc)

This commit is contained in:
sago35
2021-04-24 13:42:07 +09:00
parent 2dfc32dde9
commit 375033a6bb
+1 -4
View File
@@ -167,10 +167,7 @@ func compileAndCacheCFile(abspath, tmpdir string, cflags []string, printCommands
if err != nil {
return "", err
}
err = os.Rename(f.Name(), depfileCachePath)
if err != nil {
return "", err
}
os.Rename(f.Name(), depfileCachePath)
// Move temporary object file to final location.
outpath, err := makeCFileCachePath(dependencySlice, depfileNameHash)