Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for HasGoBuild (0.17 sec)

  1. src/internal/testenv/testenv.go

    // Builder returns the empty string.
    func Builder() string {
    	return os.Getenv("GO_BUILDER_NAME")
    }
    
    // HasGoBuild reports whether the current system can build programs with “go build”
    // and then run them with os.StartProcess or exec.Command.
    func HasGoBuild() bool {
    	if os.Getenv("GO_GCFLAGS") != "" {
    		// It's too much work to require every caller of the go command
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 16:41:38 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  2. src/cmd/go/go_test.go

    	if err != nil {
    		log.Fatal(err)
    	}
    	testTmpDir = dir
    	if !*testWork {
    		defer removeAll(testTmpDir)
    	}
    
    	testGOCACHE, _ = cache.DefaultDir()
    	if testenv.HasGoBuild() {
    		testBin = filepath.Join(testTmpDir, "testbin")
    		if err := os.Mkdir(testBin, 0777); err != nil {
    			log.Fatal(err)
    		}
    		testGo = filepath.Join(testBin, "go"+exeSuffix)
    		gotool, err := testenv.GoTool()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 81.1K bytes
    - Viewed (0)
Back to top