devcam: add -race flag

Change-Id: I1d477431b917faba3d2ee99ef5241dda14e748f3
This commit is contained in:
Brad Fitzpatrick 2013-12-11 22:13:06 +04:00
parent 2fde7c11a0
commit 2d2a0c1479
1 changed files with 2 additions and 0 deletions

View File

@ -34,6 +34,7 @@ import (
var (
noBuild = flag.Bool("nobuild", false, "do not rebuild anything")
race = flag.Bool("race", false, "build with race detector")
quiet, _ = strconv.ParseBool(os.Getenv("CAMLI_QUIET"))
// Whether to build the subcommand with sqlite support. This only
// concerns the server subcommand, which sets it to serverCmd.sqlite.
@ -176,6 +177,7 @@ func build(path string) error {
args := []string{
"run", "make.go",
"--quiet",
"--race=" + strconv.FormatBool(*race),
"--embed_static=false",
"--sqlite=" + strconv.FormatBool(withSqlite),
fmt.Sprintf("--if_mods_since=%d", modtime),