You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When debugging new versions of the race detector runtime, it can be
useful to copy the newly built syso back to the local machine's Go
repo (from the gomote) even if race.bat/race.bash fails, so as to
analyze the syso or run other tests with it. Add a command line option
"-copyonfail" that attempts to perform the copy even if the script run
fails.
Updates golang/go#35006.
Updates golang/go#53539.
Change-Id: I688b8673b444d1b6d948f10ca2fa4ab109eade44
Reviewed-on: https://go-review.googlesource.com/c/build/+/415675
Reviewed-by: Cherry Mui <[email protected]>
Run-TryBot: Than McIntosh <[email protected]>
TryBot-Result: Gopher Robot <[email protected]>
Copy file name to clipboardExpand all lines: cmd/racebuild/racebuild.go
+10-1
Original file line number
Diff line number
Diff line change
@@ -35,6 +35,7 @@ var (
35
35
flagRev=flag.String("rev", "", "llvm-project git revision from https://github.com/llvm/llvm-project (required)")
36
36
flagCherryPick=flag.String("cherrypick", "", "go.googlesource.com CL reference to cherry-pick on top of Go repo (takes form 'refs/changes/NNN/<CL number>/<patchset number>') (optional)")
37
37
flagCheckout=flag.String("checkout", "", "go.googlesource.com CL reference to check out on top of Go repo (takes form 'refs/changes/NNN/<CL number>/<patchset number>') (optional)")
38
+
flagCopyOnFail=flag.Bool("copyonfail", false, "Attempt to copy newly built race syso into Go repo even if script fails.")
38
39
flagGoRev=flag.String("gorev", "HEAD", "Go repository revision to use; HEAD is relative to --goroot")
39
40
flagPlatforms=flag.String("platforms", "all", `comma-separated platforms (such as "linux/amd64") to rebuild, or "all"`)
0 commit comments