Build benchmarks with "-Wall -Werror"

This commit is contained in:
Nigel Tao committed 2019-01-12 12:37:52 +11:00
1 parent 95d02eed0a
commit 419d403257
1 file changed
+1 -4
+1 -4
View File
@@ -95,11 +95,8 @@ func doBenchTest1(filename string, bench bool, ccompilers string, focus string,
ccArgs := []string(nil)
if bench {
ccArgs = append(ccArgs, "-O3")
} else {
// TODO: set these flags even if we pass -O3.
ccArgs = append(ccArgs, "-Wall", "-Werror")
}
ccArgs = append(ccArgs, "-std=c99", "-o", out, in)
ccArgs = append(ccArgs, "-Wall", "-Werror", "-std=c99", "-o", out, in)
if mimic {
extra, err := findWuffsMimicCflags(in)
if err != nil {