diff options
author | Justin Clift <[email protected]> | 2019-07-23 17:57:52 +1000 |
---|---|---|
committer | Ron Evans <[email protected]> | 2019-08-04 14:11:08 +0200 |
commit | f76385850dd0d38585085ecf3fcba2e9e32ad731 (patch) | |
tree | 5eee6c790212e0d199406668837fe103f2041275 | |
parent | cb09531873cdf71e05a86ddd6dcd614d7a65dc3f (diff) | |
download | tinygo-f76385850dd0d38585085ecf3fcba2e9e32ad731.tar.gz tinygo-f76385850dd0d38585085ecf3fcba2e9e32ad731.zip |
main: fix outdated panic option text
-rw-r--r-- | compiler/compiler.go | 2 | ||||
-rw-r--r-- | main.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/compiler/compiler.go b/compiler/compiler.go index 1800f462a..c68a40106 100644 --- a/compiler/compiler.go +++ b/compiler/compiler.go @@ -38,7 +38,7 @@ type Config struct { GOOS string // GOARCH string // GC string // garbage collection strategy - PanicStrategy string // panic strategy ("abort" or "trap") + PanicStrategy string // panic strategy ("print" or "trap") CFlags []string // cflags to pass to cgo LDFlags []string // ldflags to pass to cgo ClangHeaders string // Clang built-in header include path @@ -617,7 +617,7 @@ func main() { outpath := flag.String("o", "", "output filename") opt := flag.String("opt", "z", "optimization level: 0, 1, 2, s, z") gc := flag.String("gc", "", "garbage collector to use (none, leaking, conservative)") - panicStrategy := flag.String("panic", "print", "panic strategy (abort, trap)") + panicStrategy := flag.String("panic", "print", "panic strategy (print, trap)") printIR := flag.Bool("printir", false, "print LLVM IR") dumpSSA := flag.Bool("dumpssa", false, "dump internal Go SSA") tags := flag.String("tags", "", "a space-separated list of extra build tags") |