Lines Matching refs:runcmd
19 func compileFile(runcmd runCmd, longname string) (out []byte, err error) {
25 - return runcmd(cmd...)
26 + return runcmd(findGoCmd(), "tool", "compile", "-e", longname)
29 func compileInDir(runcmd runCmd, dir string, names ...string) (out []byte, err error) {
38 @@ -213,15 +205,21 @@ func compileInDir(runcmd runCmd, dir string, names ...string) (out []byte, er…
40 func linkFile(runcmd runCmd, goname string) (err error) {
47 - _, err = runcmd(cmd...)
48 + _, err = runcmd(findGoCmd(), "tool", "link", "-w", "-o", "a.exe", "-L", ".", pfile)
52 +func goRun(runcmd runCmd, goname string, args ...string) (out []byte, err error) {
60 + return runcmd(cmd...)
75 out, err := runcmd(cmdline...)
80 - _, err := runcmd("go", "build", "-o", "a.exe", long)
81 + _, err := runcmd(findGoCmd(), "build", "-o", "a.exe", long)
93 - out, err := runcmd(append(cmd, args...)...)
94 + out, err := goRun(runcmd, t.goFileName(), args...)
107 - out, err := runcmd(append(cmd, args...)...)
108 + out, err := goRun(runcmd, t.goFileName(), args...)
121 - out, err = runcmd(cmd...)
122 + out, err = goRun(runcmd, tfile)
135 - out, err := runcmd(append(cmd, args...)...)
136 + out, err := goRun(runcmd, t.goFileName(), args...)
148 out, err = runcmd(cmdline...)