mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-16 02:33:28 +00:00
builder: fixed a problem with multiple process build cases (cc)
This commit is contained in:
+1
-4
@@ -167,10 +167,7 @@ func compileAndCacheCFile(abspath, tmpdir string, cflags []string, printCommands
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
err = os.Rename(f.Name(), depfileCachePath)
|
os.Rename(f.Name(), depfileCachePath)
|
||||||
if err != nil {
|
|
||||||
return "", err
|
|
||||||
}
|
|
||||||
|
|
||||||
// Move temporary object file to final location.
|
// Move temporary object file to final location.
|
||||||
outpath, err := makeCFileCachePath(dependencySlice, depfileNameHash)
|
outpath, err := makeCFileCachePath(dependencySlice, depfileNameHash)
|
||||||
|
|||||||
Reference in New Issue
Block a user