Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 382 for cgofiles (0.25 sec)

  1. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/cgocall/cgocall.go

    					decl.Recv = nil
    				}
    			}
    			decls = append(decls, decl)
    		}
    		f.Decls = decls
    		if debug {
    			format.Node(os.Stderr, fset, f) // debugging
    		}
    		cgoFiles = append(cgoFiles, f)
    	}
    	if cgoFiles == nil {
    		return nil, nil, nil // nothing to do (can't happen?)
    	}
    
    	// Type-check the synthetic files.
    	tc := &types.Config{
    		FakeImportC: true,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 11.2K bytes
    - Viewed (0)
  2. src/cmd/go/internal/work/gc.go

    		// files are in an overlay): the code expects the package directory
    		// to exist and runs some tools in that directory.
    		// TODO(#39958): Process the overlays when the
    		// gofiles, cgofiles, cfiles, sfiles, and cxxfiles variables are
    		// created in (*Builder).build. Doing that requires rewriting the
    		// code that uses those values to expect absolute paths.
    		f, _ = fsys.OverlayPath(f)
    
    		args = append(args, f)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 15:37:44 UTC 2024
    - 23K bytes
    - Viewed (0)
  3. src/cmd/go/internal/run/run.go

    	p.Target = "" // must build - not up to date
    	if p.Internal.CmdlineFiles {
    		//set executable name if go file is given as cmd-argument
    		var src string
    		if len(p.GoFiles) > 0 {
    			src = p.GoFiles[0]
    		} else if len(p.CgoFiles) > 0 {
    			src = p.CgoFiles[0]
    		} else {
    			// this case could only happen if the provided source uses cgo
    			// while cgo is disabled.
    			hint := ""
    			if !cfg.BuildContext.CgoEnabled {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 19:09:38 UTC 2023
    - 6.9K bytes
    - Viewed (0)
  4. src/cmd/go/internal/work/exec.go

    	if dir != "" {
    		if err := sh.Mkdir(dir); err != nil {
    			return err
    		}
    	}
    
    	gofiles := str.StringList(p.GoFiles)
    	cgofiles := str.StringList(p.CgoFiles)
    	cfiles := str.StringList(p.CFiles)
    	sfiles := str.StringList(p.SFiles)
    	cxxfiles := str.StringList(p.CXXFiles)
    	var objects, cgoObjects, pcCFLAGS, pcLDFLAGS []string
    
    	if p.UsesCgo() || p.UsesSwig() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 14:46:37 UTC 2024
    - 105.6K bytes
    - Viewed (0)
  5. src/cmd/go/internal/list/list.go

            DefaultGODEBUG string  // default GODEBUG setting, for main packages
    
            // Source files
            GoFiles           []string   // .go source files (excluding CgoFiles, TestGoFiles, XTestGoFiles)
            CgoFiles          []string   // .go source files that import "C"
            CompiledGoFiles   []string   // .go files presented to compiler (when using -compiled)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 16 16:56:39 UTC 2024
    - 33.3K bytes
    - Viewed (0)
  6. src/cmd/go/internal/load/pkg.go

    	p.Goroot = pp.Goroot
    	p.Standard = p.Goroot && p.ImportPath != "" && search.IsStandardImportPath(p.ImportPath)
    	p.GoFiles = pp.GoFiles
    	p.CgoFiles = pp.CgoFiles
    	p.IgnoredGoFiles = pp.IgnoredGoFiles
    	p.InvalidGoFiles = pp.InvalidGoFiles
    	p.IgnoredOtherFiles = pp.IgnoredOtherFiles
    	p.CFiles = pp.CFiles
    	p.CXXFiles = pp.CXXFiles
    	p.MFiles = pp.MFiles
    	p.HFiles = pp.HFiles
    	p.FFiles = pp.FFiles
    	p.SFiles = pp.SFiles
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 28 17:00:51 UTC 2024
    - 120K bytes
    - Viewed (0)
  7. src/go/build/build.go

    	BinaryOnly    bool     // cannot be rebuilt from source (has //go:binary-only-package comment)
    
    	// Source files
    	GoFiles           []string // .go source files (excluding CgoFiles, TestGoFiles, XTestGoFiles)
    	CgoFiles          []string // .go source files that import "C"
    	IgnoredGoFiles    []string // .go source files ignored for this build (including ignored _test.go files)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 62.3K bytes
    - Viewed (0)
  8. src/cmd/go/internal/modindex/read.go

    	}
    	sort.Strings(p.AllTags)
    
    	if len(p.CgoFiles) > 0 {
    		p.SFiles = append(p.SFiles, Sfiles...)
    		sort.Strings(p.SFiles)
    	} else {
    		p.IgnoredOtherFiles = append(p.IgnoredOtherFiles, Sfiles...)
    		sort.Strings(p.IgnoredOtherFiles)
    	}
    
    	if badGoError != nil {
    		return p, badGoError
    	}
    	if len(p.GoFiles)+len(p.CgoFiles)+len(p.TestGoFiles)+len(p.XTestGoFiles) == 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 29.7K bytes
    - Viewed (0)
  9. src/cmd/go/internal/clean/clean.go

    		// Record which files are not in package main.
    		// The others are.
    		keep := func(list []string) {
    			for _, f := range list {
    				packageFile[f] = true
    			}
    		}
    		keep(p.GoFiles)
    		keep(p.CgoFiles)
    		keep(p.TestGoFiles)
    		keep(p.XTestGoFiles)
    	}
    
    	_, elem := filepath.Split(p.Dir)
    	var allRemove []string
    
    	// Remove dir-named executable only if this is package main.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  10. src/cmd/go/internal/load/test.go

    		ptest = new(Package)
    		*ptest = *p
    		ptest.Error = ptestErr
    		ptest.Incomplete = incomplete
    		ptest.ForTest = p.ImportPath
    		ptest.GoFiles = nil
    		ptest.GoFiles = append(ptest.GoFiles, p.GoFiles...)
    		ptest.GoFiles = append(ptest.GoFiles, p.TestGoFiles...)
    		ptest.Target = ""
    		// Note: The preparation of the vet config requires that common
    		// indexes in ptest.Imports and ptest.Internal.RawImports
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 14:01:23 UTC 2024
    - 28.2K bytes
    - Viewed (0)
Back to top