aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/csource/build.go
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2019-01-19 19:06:02 +0100
committerDmitry Vyukov <dvyukov@google.com>2019-01-19 19:20:39 +0100
commite935237c9c7214eb37cb35a93c9930b590016094 (patch)
tree08a598517b381cac5e6f1f2773aaa7663c330fcc /pkg/csource/build.go
parentd2bc932090d1b341921e50191fe1568820f05ca5 (diff)
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.
Diffstat (limited to 'pkg/csource/build.go')
-rw-r--r--pkg/csource/build.go2
1 files changed, 1 insertions, 1 deletions
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",
}