diff options
author | j7b <[email protected]> | 2019-01-09 18:12:33 -0800 |
---|---|---|
committer | Ayke van Laethem <[email protected]> | 2019-05-28 15:41:34 +0200 |
commit | 0ae467d3e2756da9c2bddfb82b210505f620d0dd (patch) | |
tree | 9c741edda389228ccf379542045bc588d9ec9071 /target.go | |
parent | 4442b1304e50f836b8e0918a038e2ee5ac9c27fe (diff) | |
download | tinygo-0ae467d3e2756da9c2bddfb82b210505f620d0dd.tar.gz tinygo-0ae467d3e2756da9c2bddfb82b210505f620d0dd.zip |
llvm cpu features
Diffstat (limited to 'target.go')
-rw-r--r-- | target.go | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -24,6 +24,7 @@ type TargetSpec struct { Inherits []string `json:"inherits"` Triple string `json:"llvm-target"` CPU string `json:"cpu"` + Features []string `json:"features"` GOOS string `json:"goos"` GOARCH string `json:"goarch"` BuildTags []string `json:"build-tags"` @@ -52,6 +53,7 @@ func (spec *TargetSpec) copyProperties(spec2 *TargetSpec) { if spec2.CPU != "" { spec.CPU = spec2.CPU } + spec.Features = append(spec.Features, spec2.Features...) if spec2.GOOS != "" { spec.GOOS = spec2.GOOS } |