Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for ToolDir (0.14 sec)

  1. src/cmd/dist/build.go

    	setNoOpt()
    	goldflags = os.Getenv("GO_LDFLAGS") // we were using $BOOT_GO_LDFLAGS until now
    	goBootstrap := pathf("%s/go_bootstrap", tooldir)
    	if debug {
    		run("", ShowOutput|CheckExit, pathf("%s/compile", tooldir), "-V=full")
    		copyfile(pathf("%s/compile1", tooldir), pathf("%s/compile", tooldir), writeExec)
    	}
    
    	// To recap, so far we have built the new toolchain
    	// (cmd/asm, cmd/cgo, cmd/compile, cmd/link)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 18:34:40 UTC 2024
    - 54K bytes
    - Viewed (0)
  2. src/go/build/gccgo.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build gccgo
    
    package build
    
    import "runtime"
    
    // getToolDir returns the default value of ToolDir.
    func getToolDir() string {
    	return envOr("GCCGOTOOLDIR", runtime.GCCGOTOOLDIR)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 344 bytes
    - Viewed (0)
  3. src/go/build/gc.go

    // license that can be found in the LICENSE file.
    
    //go:build gc
    
    package build
    
    import (
    	"path/filepath"
    	"runtime"
    )
    
    // getToolDir returns the default value of ToolDir.
    func getToolDir() string {
    	return filepath.Join(runtime.GOROOT(), "pkg/tool/"+runtime.GOOS+"_"+runtime.GOARCH)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 396 bytes
    - Viewed (0)
  4. src/cmd/go/internal/cfg/cfg.go

    			// linker).
    			//
    			// This matches the initialization of ToolDir in go/build, except for
    			// using ctxt.GOROOT and the installed GOOS and GOARCH rather than the
    			// GOROOT, GOOS, and GOARCH reported by the runtime package.
    			build.ToolDir = filepath.Join(GOROOTpkg, "tool", installedGOOS+"_"+installedGOARCH)
    		}
    	}
    }
    
    // Experiment configuration.
    var (
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 17:13:51 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  5. src/cmd/go/internal/base/tool.go

    // ToolPath returns the path at which we expect to find the named tool
    // (for example, "vet"), and the error (if any) from statting that path.
    func ToolPath(toolName string) (string, error) {
    	toolPath := filepath.Join(build.ToolDir, toolName) + cfg.ToolExeSuffix()
    	err := toolStatCache.Do(toolPath, func() error {
    		_, err := os.Stat(toolPath)
    		return err
    	})
    	return toolPath, err
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 19:04:09 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  6. src/cmd/go/internal/tool/tool.go

    		}
    		base.SetExitStatus(1)
    		return
    	}
    }
    
    // listTools prints a list of the available tools in the tools directory.
    func listTools() {
    	f, err := os.Open(build.ToolDir)
    	if err != nil {
    		fmt.Fprintf(os.Stderr, "go: no tool directory: %s\n", err)
    		base.SetExitStatus(2)
    		return
    	}
    	defer f.Close()
    	names, err := f.Readdirnames(-1)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 05 18:02:11 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  7. src/cmd/dist/buildtool.go

    	for _, name := range bootstrapDirs {
    		if !strings.HasPrefix(name, "cmd/") {
    			continue
    		}
    		name = name[len("cmd/"):]
    		if !strings.Contains(name, "/") {
    			copyfile(pathf("%s/%s%s", tooldir, name, exe), pathf("%s/bin/%s%s", workspace, name, exe), writeExec)
    		}
    	}
    
    	if vflag > 0 {
    		xprintf("\n")
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 09 23:29:41 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  8. src/cmd/go/internal/envcmd/env.go

    		{Name: "GOROOT", Value: cfg.GOROOT},
    		{Name: "GOSUMDB", Value: cfg.GOSUMDB, Changed: cfg.GOSUMDBChanged},
    		{Name: "GOTMPDIR", Value: cfg.Getenv("GOTMPDIR")},
    		{Name: "GOTOOLCHAIN"},
    		{Name: "GOTOOLDIR", Value: build.ToolDir},
    		{Name: "GOVCS", Value: cfg.GOVCS},
    		{Name: "GOVERSION", Value: runtime.Version()},
    		{Name: "GODEBUG", Value: os.Getenv("GODEBUG")},
    		{Name: "GOTELEMETRY", Value: telemetry.Mode()},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 17:13:51 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  9. src/go/build/build.go

    	}
    	if n >= 1 && (knownOS[l[n-1]] || knownArch[l[n-1]]) {
    		return ctxt.matchTag(l[n-1], allTags)
    	}
    	return true
    }
    
    // ToolDir is the directory containing build tools.
    var ToolDir = getToolDir()
    
    // IsLocalImport reports whether the import path is
    // a local import path, like ".", "..", "./foo", or "../foo".
    func IsLocalImport(path string) bool {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 62.3K bytes
    - Viewed (0)
  10. src/cmd/go/internal/load/pkg.go

    		if InstallTargetDir(p) == ToTool {
    			// This is for 'go tool'.
    			// Override all the usual logic and force it into the tool directory.
    			if cfg.BuildToolchainName == "gccgo" {
    				p.Target = filepath.Join(build.ToolDir, elem)
    			} else {
    				p.Target = filepath.Join(cfg.GOROOTpkg, "tool", full)
    			}
    		}
    	} else if p.Internal.Local {
    		// Local import turned into absolute path.
    		// No permanent install target.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 28 17:00:51 UTC 2024
    - 120K bytes
    - Viewed (0)
Back to top