From e458264aca63432b225a83267690baced3eb8f26 Mon Sep 17 00:00:00 2001 From: Josh Bleecher Snyder Date: Fri, 24 Feb 2017 21:40:57 -0800 Subject: [PATCH] cmd/compile: fix dolinkobj flag in TestAssembly Follow-up to CL 37270. This considerably reduces the time to run the test. Before: real 0m7.638s user 0m14.341s sys 0m2.244s After: real 0m4.867s user 0m7.107s sys 0m1.842s Change-Id: I8837a5da0979a1c365e1ce5874d81708249a4129 Reviewed-on: https://go-review.googlesource.com/37461 Run-TryBot: Josh Bleecher Snyder TryBot-Result: Gobot Gobot Reviewed-by: Michael Munday --- src/cmd/compile/internal/gc/asm_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd/compile/internal/gc/asm_test.go b/src/cmd/compile/internal/gc/asm_test.go index b0e4f2fbc0..76c4f640b9 100644 --- a/src/cmd/compile/internal/gc/asm_test.go +++ b/src/cmd/compile/internal/gc/asm_test.go @@ -122,7 +122,7 @@ func (ats *asmTests) compileToAsm(t *testing.T, dir string) string { for _, i := range ats.imports { out := filepath.Join(testDir, i+".a") - if s := ats.runGo(t, "build", "-o", out, "-gcflags=-dolinkobj", i); s != "" { + if s := ats.runGo(t, "build", "-o", out, "-gcflags=-dolinkobj=false", i); s != "" { t.Fatalf("Stdout = %s\nWant empty", s) } } -- 2.50.0