profile
viewpoint

Ask questionsdumpssa: print out CFG by default

This is a small change, but very useful.

diff --git a/dumpssa.go b/dumpssa.go
index ce86358..bd23e75 100644
--- a/dumpssa.go
+++ b/dumpssa.go
@@ -41,7 +41,7 @@ func dumpSSA(platform string, before, after commit, fnname string) {
                }
                cmd := exec.Command(cmdgo, args...)
                goos, goarch := parsePlatform(platform)
-               cmd.Env = append(os.Environ(), "GOOS="+goos, "GOARCH="+goarch, "GOSSAFUNC="+fnname)
+               cmd.Env = append(os.Environ(), "GOOS="+goos, "GOARCH="+goarch, "GOSSAFUNC="+fnname+":*")
                cmd.Dir = filepath.Join(c.dir, "src")
                pipe, err := cmd.StderrPipe()
                check(err)

josharian/compilecmp

Answer questions erifan

What I have been doing is appending the :* to the func name when I invoke it, which works.

Oh yes, this is a good way, and it is more flexible, thanks. I think we can close this issue now.

useful!

Related questions

No questions were found.
source:https://uonfu.com/
Github User Rank List