aboutsummaryrefslogtreecommitdiffhomepage
path: root/target.go
diff options
context:
space:
mode:
authorj7b <[email protected]>2019-01-09 18:12:33 -0800
committerAyke van Laethem <[email protected]>2019-05-28 15:41:34 +0200
commit0ae467d3e2756da9c2bddfb82b210505f620d0dd (patch)
tree9c741edda389228ccf379542045bc588d9ec9071 /target.go
parent4442b1304e50f836b8e0918a038e2ee5ac9c27fe (diff)
downloadtinygo-0ae467d3e2756da9c2bddfb82b210505f620d0dd.tar.gz
tinygo-0ae467d3e2756da9c2bddfb82b210505f620d0dd.zip
llvm cpu features
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 f842a1e40..c389b653c 100644
--- a/target.go
+++ b/target.go
@@ -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
}