aboutsummaryrefslogtreecommitdiffhomepage
path: root/target.go
diff options
context:
space:
mode:
authorAyke van Laethem <[email protected]>2018-09-14 20:27:04 +0200
committerAyke van Laethem <[email protected]>2018-09-14 20:27:04 +0200
commitc763e9f1a6531f00bbb793351525f0cd78a789d7 (patch)
tree7be3cdc59eb1b0a5170a2fd43530d3e253121c7f /target.go
parentf41a8032e7a63acb397118e659c835fa5e5e9ea1 (diff)
downloadtinygo-c763e9f1a6531f00bbb793351525f0cd78a789d7.tar.gz
tinygo-c763e9f1a6531f00bbb793351525f0cd78a789d7.zip
compiler: produce .hex files directly
Diffstat (limited to 'target.go')
-rw-r--r--target.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/target.go b/target.go
index ef37deb1d..1240fea77 100644
--- a/target.go
+++ b/target.go
@@ -18,6 +18,7 @@ type TargetSpec struct {
BuildTags []string `json:"build-tags"`
Linker string `json:"linker"`
PreLinkArgs []string `json:"pre-link-args"`
+ Objcopy string `json:"objcopy"`
}
// Load a target specification
@@ -26,6 +27,7 @@ func LoadTarget(target string) (*TargetSpec, error) {
Triple: target,
BuildTags: []string{runtime.GOOS, runtime.GOARCH},
Linker: "cc",
+ Objcopy: "objcopy",
}
// See whether there is a target specification for this target (e.g.