Target gofuzz build tag instead of cgo

go-fuzz + libFuzzer can't be built with `CGO_ENABLED=0`.
This commit is contained in:
Brandon Weeks 2019-10-08 06:47:56 +00:00
parent 355782cbf9
commit 58786a4742
4 changed files with 6 additions and 5 deletions

View File

@ -1,4 +1,4 @@
// +build cgo // +build !gofuzz
package attest package attest

View File

@ -12,7 +12,8 @@
// License for the specific language governing permissions and limitations under // License for the specific language governing permissions and limitations under
// the License. // the License.
// +build linux,cgo // +build linux
// +build !gofuzz
package attest package attest

View File

@ -12,7 +12,8 @@
// License for the specific language governing permissions and limitations under // License for the specific language governing permissions and limitations under
// the License. // the License.
// +build linux,cgo // +build linux
// +build !gofuzz
package attest package attest

View File

@ -12,12 +12,11 @@
// License for the specific language governing permissions and limitations under // License for the specific language governing permissions and limitations under
// the License. // the License.
// +build !linux !windows // +build gofuzz
package attest package attest
type platformTPM struct { type platformTPM struct {
// interf TPMInterface
} }
func probeSystemTPMs() ([]probedTPM, error) { func probeSystemTPMs() ([]probedTPM, error) {