Skip to content

Commit 22f1b56

Browse files
committed
cmd/compile: add -c flag
This will be used in the future to control backend concurrency. See CL 40693. In the meantime, make it a no-op. This should fix the linux-amd64-racecompile builders. Change-Id: Ibf3b2a7fff6f8f8c94f5fafb26e0500a51c8a4a6 Reviewed-on: https://go-review.googlesource.com/41614 Run-TryBot: Josh Bleecher Snyder <[email protected]> Reviewed-by: Brad Fitzpatrick <[email protected]> TryBot-Result: Gobot Gobot <[email protected]>
1 parent d234f9a commit 22f1b56

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/cmd/compile/internal/gc/main.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,8 @@ func Main(archInit func(*Arch)) {
184184
objabi.Flagcount("W", "debug parse tree after type checking", &Debug['W'])
185185
flag.StringVar(&asmhdr, "asmhdr", "", "write assembly header to `file`")
186186
flag.StringVar(&buildid, "buildid", "", "record `id` as the build id in the export metadata")
187+
var dashc int
188+
flag.IntVar(&dashc, "c", 0, "makes -c work")
187189
flag.BoolVar(&pure_go, "complete", false, "compiling complete package (no C or assembly)")
188190
flag.StringVar(&debugstr, "d", "", "print debug information about items in `list`; try -d help")
189191
flag.BoolVar(&flagDWARF, "dwarf", true, "generate DWARF symbols")

0 commit comments

Comments
 (0)