diff options
author | Ayke van Laethem <[email protected]> | 2018-09-14 20:27:04 +0200 |
---|---|---|
committer | Ayke van Laethem <[email protected]> | 2018-09-14 20:27:04 +0200 |
commit | c763e9f1a6531f00bbb793351525f0cd78a789d7 (patch) | |
tree | 7be3cdc59eb1b0a5170a2fd43530d3e253121c7f /target.go | |
parent | f41a8032e7a63acb397118e659c835fa5e5e9ea1 (diff) | |
download | tinygo-c763e9f1a6531f00bbb793351525f0cd78a789d7.tar.gz tinygo-c763e9f1a6531f00bbb793351525f0cd78a789d7.zip |
compiler: produce .hex files directly
Diffstat (limited to 'target.go')
-rw-r--r-- | target.go | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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. |