Skip to content

Commit 2a2e4da

Browse files
misc/cgo/errors: don't pass -C to compiler
It's not needed, and the current expectation is that it will go away in the future. Change-Id: I5f46800e748d9ffa484bda6d1738290c8e00ac2b Reviewed-on: https://go-review.googlesource.com/63751 Run-TryBot: Ian Lance Taylor <iant@golang.org> Reviewed-by: Bryan Mills <bcmills@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
1 parent 9cc170f commit 2a2e4da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

misc/cgo/errors/errors_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ func expect(t *testing.T, file string, errors []*regexp.Regexp) {
6363
defer os.RemoveAll(dir)
6464

6565
dst := filepath.Join(dir, strings.TrimSuffix(file, ".go"))
66-
cmd := exec.Command("go", "build", "-o="+dst, "-gcflags=-C", path(file))
66+
cmd := exec.Command("go", "build", "-o="+dst, path(file))
6767
out, err := cmd.CombinedOutput()
6868
if err == nil {
6969
t.Errorf("expected cgo to fail but it succeeded")

0 commit comments

Comments
 (0)