diff --git a/main.go b/main.go index 0865bff5..6d29328b 100644 --- a/main.go +++ b/main.go @@ -154,9 +154,6 @@ func Compile(pkgName, outpath string, spec *TargetSpec, config *BuildConfig, act if spec.GOOS != "darwin" { c.ApplyFunctionSections() // -ffunction-sections } - if err := c.Verify(); err != nil { - return errors.New("verification error after applying function sections") - } // Browsers cannot handle external functions that have type i64 because it // cannot be represented exactly in JavaScript (JS only has doubles). To @@ -168,9 +165,6 @@ func Compile(pkgName, outpath string, spec *TargetSpec, config *BuildConfig, act if err != nil { return err } - if err := c.Verify(); err != nil { - return errors.New("verification error after running the wasm i64 hack") - } } // Optimization levels here are roughly the same as Clang, but probably not