commit | eb03b81312c3d459fb1ffdb18da9aa122e649905 | [log] [tgz] |
---|---|---|
author | Fabian Meumertzheim <fabian@meumertzhe.im> | Wed Jul 27 00:36:30 2022 +0200 |
committer | GitHub <noreply@github.com> | Wed Jul 27 00:36:30 2022 +0200 |
tree | 1b01120d7ed82ecc18780e9c509ba5d7a737a41c | |
parent | 31d17212968b472032035a45353a1751f1c0f529 [diff] |
Add platform contraints for GOAMD64 (#3251) The new constraints `//go/constraints/amd64:v1` to `v4` can be used to mark a platform as supporting the corresponding level of `GOAMD64`. To use the new feature, users would supply their own platform: ```starlark platform( name = "amd64_with_avx", contraint_values = [ "@platforms//os:linux", "@platforms//cpu:x86_64", "@io_bazel_rules_go//go/constraints/amd64:v3", ], ) ``` and then specify the platform with `--platforms`.