mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-14 16:03:41 +00:00
compiler: move optimizer into the binary
This commit is contained in:
@@ -59,7 +59,9 @@ func Compile(pkgName, runtimePath, outpath, target string, printIR, dumpSSA bool
|
||||
if err := c.Verify(); err != nil {
|
||||
return err
|
||||
}
|
||||
//c.Optimize(2, 1) // -O2 -Os
|
||||
|
||||
// TODO: provide a flag to disable (most) optimizations.
|
||||
c.Optimize(2, 2, 5) // -Oz params
|
||||
if err := c.Verify(); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user