aboutsummaryrefslogtreecommitdiffhomepage
path: root/main.go
diff options
context:
space:
mode:
authorDamian Gryski <[email protected]>2022-08-04 15:26:44 -0700
committerRon Evans <[email protected]>2022-08-20 07:40:39 +0200
commit0b77e92c508bfd2a7d2cd871bc565ec63a679979 (patch)
tree8fb1a8c8e75b86885f01c56d8440afd9c80153ff /main.go
parenta4ee98e0e1f7a8a30b066c97936b32e795d5733d (diff)
downloadtinygo-0b77e92c508bfd2a7d2cd871bc565ec63a679979.tar.gz
tinygo-0b77e92c508bfd2a7d2cd871bc565ec63a679979.zip
make interp timeout configurable from command line
Diffstat (limited to 'main.go')
-rw-r--r--main.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.go b/main.go
index 05dc56d10..1ae656410 100644
--- a/main.go
+++ b/main.go
@@ -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,