- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 93 for lockPath (0.19 sec)
-
src/cmd/go/scriptconds_test.go
func defaultCCIsAbsolute(s *script.State) (bool, error) { GOOS, _ := s.LookupEnv("GOOS") GOARCH, _ := s.LookupEnv("GOARCH") defaultCC := cfg.DefaultCC(GOOS, GOARCH) if filepath.IsAbs(defaultCC) { if _, err := exec.LookPath(defaultCC); err == nil { return true, nil } } return false, nil } func ccIs(s *script.State, want string) (bool, error) { CC, _ := s.LookupEnv("CC") if CC != "" { return CC == want, nil }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 21 22:16:54 UTC 2024 - 7.4K bytes - Viewed (0) -
src/runtime/syscall_windows_test.go
"testO2", func(out, src string) []string { return []string{"gcc", "-shared", "-s", "-Werror", "-o", out, "-O2", src} }, }, } func TestStdcallAndCDeclCallbacks(t *testing.T) { if _, err := exec.LookPath("gcc"); err != nil { t.Skip("skipping test: gcc is missing") } tmp := t.TempDir() oldRegs := runtime.SetIntArgRegs(abi.IntArgRegs) defer runtime.SetIntArgRegs(oldRegs)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Aug 31 16:31:35 UTC 2023 - 32.5K bytes - Viewed (0) -
src/cmd/go/internal/gover/toolchain.go
// FromToolchain("invalid") == "" func FromToolchain(name string) string { if strings.ContainsAny(name, "\\/") { // The suffix must not include a path separator, since that would cause // exec.LookPath to resolve it from a relative directory instead of from // $PATH. return "" } var v string if strings.HasPrefix(name, "go") { v = name[2:] } else { return "" }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Nov 06 23:20:32 UTC 2023 - 3K bytes - Viewed (0) -
src/cmd/go/internal/script/cmds.go
err = cmd.Wait() return stdoutBuf.String(), stderrBuf.String(), err } return wait, nil } // lookPath is (roughly) like exec.LookPath, but it uses the script's current // PATH to find the executable. func lookPath(s *State, command string) (string, error) { var strEqual func(string, string) bool if runtime.GOOS == "windows" || runtime.GOOS == "darwin" {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 26 19:58:28 UTC 2024 - 28.5K bytes - Viewed (0) -
src/cmd/go/testdata/script/build_cc_cache_issue64423.txt
stderr '# runtime/cgo\nGO_BREAK_CLANG is set' -- go.mod -- module example/issue64423 go 1.20 -- which/main.go -- package main import ( "os" "os/exec" ) func main() { path, err := exec.LookPath(os.Args[1]) if err != nil { panic(err) } os.Stdout.WriteString(path) } -- fakeclang/main.go -- package main import ( "bufio" "bytes" "log" "os" "os/exec" "path/filepath"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Dec 07 19:13:29 UTC 2023 - 2.9K bytes - Viewed (0) -
cmd/service.go
os.Exit(0) } return err } // Use the original binary location. This works with symlinks such that if // the file it points to has been changed we will use the updated symlink. argv0, err := exec.LookPath(os.Args[0]) if err != nil { return err } // Invokes the execve system call. // Re-uses the same pid. This preserves the pid over multiple server-respawns. return syscall.Exec(argv0, os.Args, os.Environ())
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Wed Feb 28 07:02:14 UTC 2024 - 3.8K bytes - Viewed (0) -
src/internal/testenv/testenv.go
goBuildErr = fmt.Errorf("%v: %w", cmd, err) return } out = bytes.TrimSpace(out) if len(out) == 0 { goBuildErr = fmt.Errorf("%v: no tool reported", cmd) return } if _, err := exec.LookPath(string(out)); err != nil { goBuildErr = err return } if platform.MustLinkExternal(runtime.GOOS, runtime.GOARCH, false) { // We can assume that we always have a complete Go toolchain available.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 16:41:38 UTC 2024 - 15.7K bytes - Viewed (0) -
src/cmd/cgo/internal/swig/swig_test.go
}) // The first call will skip t with a nice message. On later calls, we just skip. if !haveSwig { t.Skip("swig not found") } } func mustHaveSwigOnce(t *testing.T) { swig, err := exec.LookPath("swig") if err != nil { t.Skipf("swig not in PATH: %s", err) } // Check that swig was installed with Go support by checking // that a go directory exists inside the swiglib directory.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 12:38:14 UTC 2024 - 4K bytes - Viewed (0) -
src/cmd/cgo/internal/testfortran/fortran_test.go
"strings" "testing" ) func TestFortran(t *testing.T) { testenv.MustHaveGoRun(t) testenv.MustHaveCGO(t) // Find the FORTRAN compiler. fc := os.Getenv("FC") if fc == "" { fc, _ = exec.LookPath("gfortran") } if fc == "" { t.Skip("fortran compiler not found (try setting $FC)") } var fcExtra []string if strings.Contains(fc, "gfortran") {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 18 01:29:16 UTC 2023 - 2.6K bytes - Viewed (0) -
src/cmd/go/internal/script/scripttest/scripttest.go
// executable. func CachedExec() script.Cond { return script.CachedCondition( "<suffix> names an executable in the test binary's PATH", func(name string) (bool, error) { _, err := cfg.LookPath(name) return err == nil, nil })
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 11 20:12:18 UTC 2023 - 3.7K bytes - Viewed (0)