aboutsummaryrefslogtreecommitdiffhomepage
path: root/compileopts/options.go
diff options
context:
space:
mode:
authorsago35 <[email protected]>2022-02-14 12:03:04 +0900
committerRon Evans <[email protected]>2022-03-24 05:51:38 +0100
commit234234af1564016a8f062ef85fa45f68d6cd1b3b (patch)
tree88e2a9c2bf3e8ea6b8fefcabbced41ce8827eeca /compileopts/options.go
parent3d6880470204fdf6449c9fd0a7fedba8f8361724 (diff)
downloadtinygo-234234af1564016a8f062ef85fa45f68d6cd1b3b.tar.gz
tinygo-234234af1564016a8f062ef85fa45f68d6cd1b3b.zip
build: add JSON output to build command
Diffstat (limited to 'compileopts/options.go')
-rw-r--r--compileopts/options.go5
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.