diff options
author | Damian Gryski <[email protected]> | 2022-08-04 15:26:44 -0700 |
---|---|---|
committer | Ron Evans <[email protected]> | 2022-08-20 07:40:39 +0200 |
commit | 0b77e92c508bfd2a7d2cd871bc565ec63a679979 (patch) | |
tree | 8fb1a8c8e75b86885f01c56d8440afd9c80153ff /main.go | |
parent | a4ee98e0e1f7a8a30b066c97936b32e795d5733d (diff) | |
download | tinygo-0b77e92c508bfd2a7d2cd871bc565ec63a679979.tar.gz tinygo-0b77e92c508bfd2a7d2cd871bc565ec63a679979.zip |
make interp timeout configurable from command line
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1295,6 +1295,7 @@ func main() { scheduler := flag.String("scheduler", "", "which scheduler to use (none, tasks, asyncify)") serial := flag.String("serial", "", "which serial output to use (none, uart, usb)") work := flag.Bool("work", false, "print the name of the temporary build directory and do not delete this directory on exit") + interpTimeout := flag.Duration("interp-timeout", 180*time.Second, "interp optimization pass timeout") printIR := flag.Bool("printir", false, "print LLVM IR") dumpSSA := flag.Bool("dumpssa", false, "dump internal Go SSA") verifyIR := flag.Bool("verifyir", false, "run extra verification steps on LLVM IR") @@ -1385,6 +1386,7 @@ func main() { Scheduler: *scheduler, Serial: *serial, Work: *work, + InterpTimeout: *interpTimeout, PrintIR: *printIR, DumpSSA: *dumpSSA, VerifyIR: *verifyIR, |