From 2d2a0c147956a9d40949f7c11bbbf39e03f94af7 Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Wed, 11 Dec 2013 22:13:06 +0400 Subject: [PATCH] devcam: add -race flag Change-Id: I1d477431b917faba3d2ee99ef5241dda14e748f3 --- dev/devcam/devcam.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dev/devcam/devcam.go b/dev/devcam/devcam.go index 92fd0a192..01cde632f 100644 --- a/dev/devcam/devcam.go +++ b/dev/devcam/devcam.go @@ -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),