Skip to content

Commit 92d9f85

Browse files
aykevldeadprogram
authored andcommitted
main: rename some flags to make them explicitly internal
These flags shouldn't be used by users, but they are occasionally helpful for developers.
1 parent ee5890f commit 92d9f85

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

main.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1401,9 +1401,6 @@ func main() {
14011401
serial := flag.String("serial", "", "which serial output to use (none, uart, usb)")
14021402
work := flag.Bool("work", false, "print the name of the temporary build directory and do not delete this directory on exit")
14031403
interpTimeout := flag.Duration("interp-timeout", 180*time.Second, "interp optimization pass timeout")
1404-
printIR := flag.Bool("printir", false, "print LLVM IR")
1405-
dumpSSA := flag.Bool("dumpssa", false, "dump internal Go SSA")
1406-
verifyIR := flag.Bool("verifyir", false, "run extra verification steps on LLVM IR")
14071404
var tags buildutil.TagsFlag
14081405
flag.Var(&tags, "tags", "a space-separated list of extra build tags")
14091406
target := flag.String("target", "", "chip/board name or JSON target specification file")
@@ -1430,6 +1427,11 @@ func main() {
14301427
monitor := flag.Bool("monitor", false, "enable serial monitor")
14311428
baudrate := flag.Int("baudrate", 115200, "baudrate of serial monitor")
14321429

1430+
// Internal flags, that are only intended for TinyGo development.
1431+
printIR := flag.Bool("internal-printir", false, "print LLVM IR")
1432+
dumpSSA := flag.Bool("internal-dumpssa", false, "dump internal Go SSA")
1433+
verifyIR := flag.Bool("internal-verifyir", false, "run extra verification steps on LLVM IR")
1434+
14331435
var flagJSON, flagDeps, flagTest bool
14341436
if command == "help" || command == "list" || command == "info" || command == "build" {
14351437
flag.BoolVar(&flagJSON, "json", false, "print data in JSON format")

0 commit comments

Comments
 (0)