• Home
  • Raw
  • Download

Lines Matching full:runcmd

21  type runCmd func(...string) ([]byte, error)
23 func compileFile(runcmd runCmd, longname string, flags []string) (out []byte, err error) {
31 return runcmd(cmd...)
34 …func compileInDir(runcmd runCmd, dir string, flags []string, localImports bool, names ...string) (…
48 @@ -234,15 +228,28 @@ func compileInDir(runcmd runCmd, dir string, flags []string, localImports boo…
50 func linkFile(runcmd runCmd, goname string) (err error) {
58 - _, err = runcmd(cmd...)
59 + _, err = runcmd(findGoCmd(), "tool", "link", "-w", "-o", "a.exe", "-L", ".", pfile)
64 +func goRun(runcmd runCmd, flags []string, goname string, args ...string) (out []byte, err error) {
73 + return runcmd(cmd...)
92 - _, err := runcmd(goTool(), "build", goGcflags(), "-o", "a.exe", long)
93 + _, err := runcmd(findGoCmd(), "build", goGcflags(), "-o", "a.exe", long)
122 _, err = runcmd(cmd...)
129 _, err = runcmd(cmd...)
149 - out, err = runcmd(append(cmd, args...)...)
156 + out, err = runcmd(append(cmd, args...)...)
175 - if _, err := runcmd(goTool(), "tool", "compile", "-o", pkg, t.goFileName()); err != nil {
182 - if _, err := runcmd(cmd...); err != nil {
186 - out, err = runcmd(append([]string{exe}, args...)...)
194 - out, err = runcmd(append(cmd, args...)...)
196 + out, err := goRun(runcmd, flags, t.goFileName(), args...)
209 - out, err := runcmd(append(cmd, args...)...)
210 + out, err := goRun(runcmd, nil, t.goFileName(), args...)
223 - out, err = runcmd(cmd...)
224 + out, err = goRun(runcmd, nil, tfile)
237 - out, err := runcmd(append(cmd, args...)...)
238 + out, err := goRun(runcmd, nil, t.goFileName(), args...)
250 out, err = runcmd(cmdline...)