make.go: don't fail to build gopherjs if it doesn't already exist

Fixes #1096

Change-Id: I71c3a48248503b94ef0b4415083ccf95b5bb6265
This commit is contained in:
Brad Fitzpatrick 2018-04-17 13:31:33 -07:00
parent c0c763492d
commit c193a87ae1
1 changed files with 2 additions and 1 deletions

View File

@ -278,10 +278,11 @@ func buildGopherjs() error {
return err
}
modtime := time.Now()
var hashBefore string
if err == nil {
modtime = fi.ModTime()
hashBefore = hashsum(outBin)
}
hashBefore := hashsum(outBin)
src := filepath.Join(pkRoot, filepath.FromSlash("vendor/github.com/gopherjs/gopherjs"))
goBin := "go"