From 58786a47427f855a32b47b2d772b5ceb4671a04d Mon Sep 17 00:00:00 2001 From: Brandon Weeks Date: Tue, 8 Oct 2019 06:47:56 +0000 Subject: [PATCH] Target gofuzz build tag instead of cgo go-fuzz + libFuzzer can't be built with `CGO_ENABLED=0`. --- attest/activation.go | 2 +- attest/key_linux.go | 3 ++- attest/tpm_linux.go | 3 ++- attest/tpm_other.go | 3 +-- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/attest/activation.go b/attest/activation.go index ddbe7e8..71622ec 100644 --- a/attest/activation.go +++ b/attest/activation.go @@ -1,4 +1,4 @@ -// +build cgo +// +build !gofuzz package attest diff --git a/attest/key_linux.go b/attest/key_linux.go index 5829399..04dbd79 100644 --- a/attest/key_linux.go +++ b/attest/key_linux.go @@ -12,7 +12,8 @@ // License for the specific language governing permissions and limitations under // the License. -// +build linux,cgo +// +build linux +// +build !gofuzz package attest diff --git a/attest/tpm_linux.go b/attest/tpm_linux.go index 9d202cd..e56568a 100644 --- a/attest/tpm_linux.go +++ b/attest/tpm_linux.go @@ -12,7 +12,8 @@ // License for the specific language governing permissions and limitations under // the License. -// +build linux,cgo +// +build linux +// +build !gofuzz package attest diff --git a/attest/tpm_other.go b/attest/tpm_other.go index 1f80fd7..27f2c9e 100644 --- a/attest/tpm_other.go +++ b/attest/tpm_other.go @@ -12,12 +12,11 @@ // License for the specific language governing permissions and limitations under // the License. -// +build !linux !windows +// +build gofuzz package attest type platformTPM struct { - // interf TPMInterface } func probeSystemTPMs() ([]probedTPM, error) {