From e935237c9c7214eb37cb35a93c9930b590016094 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Sat, 19 Jan 2019 19:06:02 +0100 Subject: Makefile: enable -Wunused-const-variable See discussion in PR #942. Extend support for optional flags in sys/targets as this flag is not supported by gcc 5. Make flags consistent across Makefile and pkg/csource. --- pkg/csource/build.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg') diff --git a/pkg/csource/build.go b/pkg/csource/build.go index bdafe9a63..83b69b537 100644 --- a/pkg/csource/build.go +++ b/pkg/csource/build.go @@ -39,7 +39,7 @@ func build(target *prog.Target, src []byte, file string) (string, error) { } flags := []string{ - "-Wall", "-Werror", "-O1", "-o", bin, "-pthread", + "-o", bin, "-DGOOS_" + target.OS + "=1", "-DGOARCH_" + target.Arch + "=1", } -- cgit mrf-deployment