- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for FindExecCmd (0.13 sec)
-
src/cmd/go/internal/run/run.go
// buildRunProgram is the action for running a binary that has already // been compiled. We ignore exit status. func buildRunProgram(b *work.Builder, ctx context.Context, a *work.Action) error { cmdline := str.StringList(work.FindExecCmd(), a.Deps[0].Target, a.Args) if cfg.BuildN || cfg.BuildX { b.Shell(a).ShowCmd("", "%s", strings.Join(cmdline, " ")) if cfg.BuildN { return nil } } base.RunStdin(cmdline) return nil
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 19:09:38 UTC 2023 - 6.9K bytes - Viewed (0) -
src/cmd/go/internal/work/build.go
// the target GOOS and GOARCH substituted. // The -exec flag overrides these defaults. var ExecCmd []string // FindExecCmd derives the value of ExecCmd to use. // It returns that value and leaves ExecCmd set for direct use. func FindExecCmd() []string { if ExecCmd != nil { return ExecCmd } ExecCmd = []string{} // avoid work the second time
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 21 17:22:59 UTC 2024 - 33.2K bytes - Viewed (0) -
src/cmd/internal/testdir/testdir_test.go
return err } if i == len(pkgs)-1 { err = linkFile(runcmd, pkg.files[0], importcfgfile, ldflags) if err != nil { return err } var cmd []string cmd = append(cmd, findExecCmd()...) cmd = append(cmd, filepath.Join(tempDir, "a.exe")) cmd = append(cmd, args...) out, err := runcmd(cmd...) if err != nil { return err } t.checkExpectedOutput(out) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 21 20:08:06 UTC 2024 - 57.5K bytes - Viewed (0) -
src/cmd/go/internal/test/test.go
base.Fatalf("failed to stop trace: %v", err) } }() } ctx, span := trace.StartSpan(ctx, fmt.Sprint("Running ", cmd.Name(), " command")) defer span.Done() work.FindExecCmd() // initialize cached result work.BuildInit() work.VetFlags = testVet.flags work.VetExplicit = testVet.explicit pkgOpts := load.PackageOpts{ModResolveTests: true}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 14:34:32 UTC 2024 - 71.9K bytes - Viewed (0)