From 2c3cb19a983cacd47c2b6134597d10de69010c42 Mon Sep 17 00:00:00 2001 From: Cherry Mui Date: Wed, 18 May 2022 12:50:49 -0400 Subject: [PATCH] cmd/compile/internal/test: make TestIntendedInlining faster MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit There is no need to build with -a. The go command should do the right thing to pass the flags. Also, we only care packages mentioned on the command line, so no need to add -gcflags=all=.... May fix #52081. Change-Id: Idabcfe285c90ed5d25ea6d42abd7617078d3283a Reviewed-on: https://go-review.googlesource.com/c/go/+/407015 Reviewed-by: Keith Randall TryBot-Result: Gopher Robot Reviewed-by: Daniel Martí Run-TryBot: Cherry Mui Reviewed-by: Keith Randall --- src/cmd/compile/internal/test/inl_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd/compile/internal/test/inl_test.go b/src/cmd/compile/internal/test/inl_test.go index 3fd45f21e7..49ee88eaec 100644 --- a/src/cmd/compile/internal/test/inl_test.go +++ b/src/cmd/compile/internal/test/inl_test.go @@ -275,7 +275,7 @@ func TestIntendedInlining(t *testing.T) { } } - args := append([]string{"build", "-a", "-gcflags=all=-m -m", "-tags=math_big_pure_go"}, pkgs...) + args := append([]string{"build", "-gcflags=-m -m", "-tags=math_big_pure_go"}, pkgs...) cmd := testenv.CleanCmdEnv(exec.Command(testenv.GoToolPath(t), args...)) pr, pw := io.Pipe() cmd.Stdout = pw