diff options
author | sago35 <[email protected]> | 2022-02-14 12:03:04 +0900 |
---|---|---|
committer | Ron Evans <[email protected]> | 2022-03-24 05:51:38 +0100 |
commit | 234234af1564016a8f062ef85fa45f68d6cd1b3b (patch) | |
tree | 88e2a9c2bf3e8ea6b8fefcabbced41ce8827eeca /compileopts | |
parent | 3d6880470204fdf6449c9fd0a7fedba8f8361724 (diff) | |
download | tinygo-234234af1564016a8f062ef85fa45f68d6cd1b3b.tar.gz tinygo-234234af1564016a8f062ef85fa45f68d6cd1b3b.zip |
build: add JSON output to build command
Diffstat (limited to 'compileopts')
-rw-r--r-- | compileopts/options.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/compileopts/options.go b/compileopts/options.go index 6c5aaadbf..a4e69bede 100644 --- a/compileopts/options.go +++ b/compileopts/options.go @@ -32,8 +32,8 @@ type Options struct { PrintIR bool DumpSSA bool VerifyIR bool - PrintCommands func(cmd string, args ...string) - Semaphore chan struct{} // -p flag controls cap + PrintCommands func(cmd string, args ...string) `json:"-"` + Semaphore chan struct{} `json:"-"` // -p flag controls cap Debug bool PrintSizes string PrintAllocs *regexp.Regexp // regexp string @@ -46,6 +46,7 @@ type Options struct { OpenOCDCommands []string LLVMFeatures string Directory string + PrintJSON bool } // Verify performs a validation on the given options, raising an error if options are not valid. |