aboutsummaryrefslogtreecommitdiffhomepage
path: root/main.go
diff options
context:
space:
mode:
authorAyke van Laethem <[email protected]>2023-06-01 18:50:31 +0200
committerRon Evans <[email protected]>2023-06-06 11:46:16 +0200
commit92d9f856ab704ec8615fc289a07fc9e0e7443778 (patch)
tree11cacb98e6e7e8c306da7403c41c92ff1328d43b /main.go
parentee5890f36f894fea8d4a918170b66ea4fff4ee7d (diff)
downloadtinygo-92d9f856ab704ec8615fc289a07fc9e0e7443778.tar.gz
tinygo-92d9f856ab704ec8615fc289a07fc9e0e7443778.zip
main: rename some flags to make them explicitly internal
These flags shouldn't be used by users, but they are occasionally helpful for developers.
Diffstat (limited to 'main.go')
-rw-r--r--main.go8
1 files changed, 5 insertions, 3 deletions
diff --git a/main.go b/main.go
index ffa660d01..c1980881c 100644
--- a/main.go
+++ b/main.go
@@ -1401,9 +1401,6 @@ func main() {
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")
var tags buildutil.TagsFlag
flag.Var(&tags, "tags", "a space-separated list of extra build tags")
target := flag.String("target", "", "chip/board name or JSON target specification file")
@@ -1430,6 +1427,11 @@ func main() {
monitor := flag.Bool("monitor", false, "enable serial monitor")
baudrate := flag.Int("baudrate", 115200, "baudrate of serial monitor")
+ // Internal flags, that are only intended for TinyGo development.
+ printIR := flag.Bool("internal-printir", false, "print LLVM IR")
+ dumpSSA := flag.Bool("internal-dumpssa", false, "dump internal Go SSA")
+ verifyIR := flag.Bool("internal-verifyir", false, "run extra verification steps on LLVM IR")
+
var flagJSON, flagDeps, flagTest bool
if command == "help" || command == "list" || command == "info" || command == "build" {
flag.BoolVar(&flagJSON, "json", false, "print data in JSON format")