Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for InitFromDriver (0.13 sec)

  1. src/go/internal/gccgoimporter/gccgoinstallation.go

    	LibPaths []string
    }
    
    // Ask the driver at the given path for information for this GccgoInstallation.
    // The given arguments are passed directly to the call of the driver.
    func (inst *GccgoInstallation) InitFromDriver(gccgoPath string, args ...string) (err error) {
    	argv := append([]string{"-###", "-S", "-x", "go", "-"}, args...)
    	cmd := exec.Command(gccgoPath, argv...)
    	stderr, err := cmd.StderrPipe()
    	if err != nil {
    		return
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 17:49:12 UTC 2022
    - 2.4K bytes
    - Viewed (0)
  2. src/go/importer/importer.go

    	case "gc":
    		return &gcimports{
    			fset:     fset,
    			packages: make(map[string]*types.Package),
    			lookup:   lookup,
    		}
    
    	case "gccgo":
    		var inst gccgoimporter.GccgoInstallation
    		if err := inst.InitFromDriver("gccgo"); err != nil {
    			return nil
    		}
    		return &gccgoimports{
    			packages: make(map[string]*types.Package),
    			importer: inst.GetImporter(nil, nil),
    			lookup:   lookup,
    		}
    
    	case "source":
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  3. src/go/internal/gccgoimporter/gccgoinstallation_test.go

    	// This test relies on gccgo being around.
    	gpath := gccgoPath()
    	if gpath == "" {
    		t.Skip("This test needs gccgo")
    	}
    
    	var inst GccgoInstallation
    	err := inst.InitFromDriver(gpath)
    	if err != nil {
    		t.Fatal(err)
    	}
    	imp := inst.GetImporter(nil, nil)
    
    	// Ensure we don't regress the number of packages we can parse. First import
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Feb 21 02:25:41 UTC 2021
    - 4K bytes
    - Viewed (0)
Back to top