main: escape commands while printing them with the -x flag

This should make issues such as the one in
https://github.com/tinygo-org/tinygo/issues/1910 more obvious.
This commit is contained in:
Ayke van Laethem
2021-06-02 14:39:43 +02:00
committed by Ron Evans
parent af65c006e6
commit 4e610a0ee7
4 changed files with 30 additions and 9 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ type Options struct {
PrintIR bool
DumpSSA bool
VerifyIR bool
PrintCommands bool
PrintCommands func(cmd string, args ...string)
Debug bool
PrintSizes string
PrintAllocs *regexp.Regexp // regexp string