llvm cpu features

This commit is contained in:
j7b
2019-01-09 18:12:33 -08:00
committed by Ayke van Laethem
parent 4442b1304e
commit 0ae467d3e2
3 changed files with 9 additions and 1 deletions
+2
View File
@@ -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
}