mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-07-28 07:38:41 +00:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 8a3f96b221 |
+7
-1
@@ -300,7 +300,13 @@ func Build(pkgName, outpath string, config *compileopts.Config, action func(Buil
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
return os.Rename(f.Name(), bitcodePath)
|
|
||||||
|
// Rename may fail if another process is trying to write to
|
||||||
|
// the same file. However, in this case, the failure is
|
||||||
|
// acceptable because the result of the other process can be
|
||||||
|
// used.
|
||||||
|
os.Rename(f.Name(), bitcodePath)
|
||||||
|
return nil
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
jobs = append(jobs, job)
|
jobs = append(jobs, job)
|
||||||
|
|||||||
Reference in New Issue
Block a user