- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 33 for lockPath (0.19 sec)
-
src/cmd/go/internal/work/gccgo.go
type gccgoToolchain struct{} var GccgoName, GccgoBin string var gccgoErr error func init() { GccgoName = cfg.Getenv("GCCGO") if GccgoName == "" { GccgoName = "gccgo" } GccgoBin, gccgoErr = cfg.LookPath(GccgoName) } func (gccgoToolchain) compiler() string { checkGccgoBin() return GccgoBin } func (gccgoToolchain) linker() string { checkGccgoBin() return GccgoBin }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 02 22:18:34 UTC 2024 - 19K bytes - Viewed (0) -
src/cmd/go/internal/work/shell.go
} } envcmdline += joinUnambiguously(cmdline) sh.ShowCmd(dir, "%s", envcmdline) if cfg.BuildN { return nil, nil } } var buf bytes.Buffer path, err := cfg.LookPath(cmdline[0]) if err != nil { return nil, err } cmd := exec.Command(path, cmdline[1:]...) if cmd.Path != "" { cmd.Args[0] = cmd.Path } cmd.Stdout = &buf cmd.Stderr = &buf
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 14:34:32 UTC 2024 - 19.8K bytes - Viewed (0) -
src/cmd/cgo/internal/testcshared/cshared_test.go
if filepath.Ext(dlltoolpath) == "" { // Some compilers report slash-separated paths without extensions // instead of ordinary Windows paths. // Try to find the canonical name for the path. if lp, err := exec.LookPath(dlltoolpath); err == nil { dlltoolpath = lp } } args := []string{dlltoolpath, "-D", args[6], "-l", libgoname, "-d", "libgo.def"} if filepath.Ext(dlltoolpath) == "" {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 14 13:19:50 UTC 2023 - 21K bytes - Viewed (0) -
src/cmd/vendor/github.com/google/pprof/internal/binutils/binutils.go
// If it cannot find it, returns cmd. func findExe(cmd string, paths []string) (string, bool) { for _, p := range paths { cp := filepath.Join(p, cmd) if c, err := exec.LookPath(cp); err == nil { return c, true } } return cmd, false } // Disasm returns the assembly instructions for the specified address range // of a binary.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 31 19:48:28 UTC 2024 - 22.3K bytes - Viewed (0) -
src/cmd/go/internal/work/buildid.go
if len(fields) == 0 { return "", "", fmt.Errorf("%s: compilation command confusion %q", name, out) } exe = fields[0] if !strings.ContainsAny(exe, `/\`) { if lp, err := cfg.LookPath(exe); err == nil { exe = lp } } id, err = buildid.ReadFile(exe) if err != nil { return "", "", err } // If we can't find a build ID, use a hash. if id == "" {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:31:25 UTC 2024 - 26.2K bytes - Viewed (0) -
src/cmd/go/internal/toolchain/select.go
} // Look in PATH for the toolchain before we download one. // This allows custom toolchains as well as reuse of toolchains // already installed using go install golang.org/dl/go1.2.3@latest. if exe, err := cfg.LookPath(gotoolchain); err == nil { execGoToolchain(gotoolchain, "", exe) } // GOTOOLCHAIN=auto looks in PATH and then falls back to download. // GOTOOLCHAIN=path only looks in PATH. if pathOnly {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 17:25:05 UTC 2024 - 23.4K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/html.go
fmt.Printf("range is not valid: %v\n", r) return nil } for p := first; p <= last; p++ { ph[passes[p].name] = true } } path, err := exec.LookPath("dot") if err != nil { fmt.Println(err) return nil } return &dotWriter{path: path, phases: ph} } func passIdxByName(name string) int { for i, p := range passes {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 04 15:11:40 UTC 2023 - 34.8K bytes - Viewed (0) -
src/cmd/cgo/internal/testcarchive/carchive_test.go
} return strings.TrimSpace(string(out)) } func cmdToRun(name string) []string { execScript := "go_" + goEnv("GOOS") + "_" + goEnv("GOARCH") + "_exec" executor, err := exec.LookPath(execScript) if err != nil { return []string{name} } return []string{executor, name} } // genHeader writes a C header file for the C-exported declarations found in .go // source files in dir. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 12 00:43:51 UTC 2023 - 34.8K bytes - Viewed (0) -
src/os/signal/signal_test.go
if runtime.GOOS == "darwin" && os.Getenv("TMUX") != "" { t.Skip("Skipping nohup test due to running in tmux on darwin") } // Again, this time with nohup, assuming we can find it. _, err := exec.LookPath("nohup") if err != nil { t.Skip("cannot find nohup; skipping second half of test") } var subTimeout time.Duration if deadline, ok := t.Deadline(); ok { subTimeout = time.Until(deadline)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 09 15:34:56 UTC 2023 - 27.2K bytes - Viewed (0) -
src/cmd/go/internal/work/build.go
if ExecCmd != nil { return ExecCmd } ExecCmd = []string{} // avoid work the second time if cfg.Goos == runtime.GOOS && cfg.Goarch == runtime.GOARCH { return ExecCmd } path, err := cfg.LookPath(fmt.Sprintf("go_%s_%s_exec", cfg.Goos, cfg.Goarch)) if err == nil { ExecCmd = []string{path} } return ExecCmd } // A coverFlag is a flag.Value that also implies -cover.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 21 17:22:59 UTC 2024 - 33.2K bytes - Viewed (0)