From 738d5a2b3a001318064be649d683684630eff4c2 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Tue, 7 Sep 2021 12:57:52 +0200 Subject: stupidgcm: fix build with CGO_ENABLED=1 without_openssl We missed some "// +build" lines --- internal/stupidgcm/Makefile | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'internal/stupidgcm/Makefile') diff --git a/internal/stupidgcm/Makefile b/internal/stupidgcm/Makefile index 22e3b2e..143819d 100644 --- a/internal/stupidgcm/Makefile +++ b/internal/stupidgcm/Makefile @@ -1,3 +1,14 @@ +.PHONY: test +test: gcc + # All three ways of building this must work + go build + go build -tags without_openssl + CGO_ENABLED=0 go build -tags without_openssl + # Likewise, all three ways of testing this must work + go test -v + go test -v -tags without_openssl + CGO_ENABLED=0 go test -v -tags without_openssl + .PHONY: gcc gcc: gcc -Wall -Wextra -Wformat-security -Wconversion -lcrypto -c *.c -- cgit v1.2.3