Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for CompiledGoFiles (0.21 sec)

  1. src/cmd/go/testdata/script/list_swigcxx.txt

    # go list should not report SWIG-generated C++ files in CompiledGoFiles.
    
    [!exec:swig] skip
    [!exec:g++] skip
    [!cgo] skip
    
    # CompiledGoFiles should contain 4 files:
    #  a.go
    #  _cgo_import.go [gc only]
    #  _cgo_gotypes.go
    #  a.cgo1.go
    #
    # These names we see here, other than a.go, will be from the build cache,
    # so we just count them.
    
    go list -f '{{.CompiledGoFiles}}' -compiled=true example/swig
    
    stdout a\.go
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 04:04:13 UTC 2024
    - 581 bytes
    - Viewed (0)
  2. src/cmd/go/testdata/script/list_compiled_files_issue28749.txt

    go list -compiled -f {{.CompiledGoFiles}} .
    ! stdout 'foo.s'
    
    -- go.mod --
    module example.com/foo
    
    go 1.20
    -- foo.go --
    package foo
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 18 21:12:24 UTC 2022
    - 144 bytes
    - Viewed (0)
  3. src/cmd/go/testdata/script/list_cgo_compiled_importmap.txt

    # Regression test for https://golang.org/issue/46462.
    #
    # The "runtime/cgo" import found in synthesized .go files (reported in
    # the CompiledGoFiles field) should have a corresponding entry in the
    # ImportMap field when a runtime/cgo variant (such as a test variant)
    # will be used.
    
    [short] skip  # -compiled can be slow (because it compiles things)
    [!cgo] skip
    [GOOS:darwin] skip # net package does not import "C" on Darwin
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 27 22:26:09 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  4. src/cmd/go/testdata/script/build_overlay.txt

    	"strings"
    )
    
    func main() {
    	compiledGoFilesArg := os.Args[1]
    	b, err := ioutil.ReadFile(compiledGoFilesArg)
    	if err != nil {
    		log.Fatal(err)
    	}
    	compiledGoFiles := strings.Split(strings.TrimSpace(string(b)), "\n")
    	for _, f := range compiledGoFiles {
    		b, err := ioutil.ReadFile(f)
    		if err != nil {
    			log.Fatal(err)
    		}
    		for _, line := range strings.Split(string(b), "\n") {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Oct 29 00:40:18 UTC 2022
    - 7.9K bytes
    - Viewed (0)
  5. src/cmd/go/testdata/script/build_cwd_newline.txt

    [cgo] ! go test -v main.go main_test.go
    [!cgo] ! go test -v main_nocgo.go main_test.go
    stderr 'package command-line-arguments: invalid package directory .*uh-oh'
    
    go list -compiled -e -f '{{with .CompiledGoFiles}}{{.}}{{end}}' .
    ! stdout .
    ! stderr .
    ! exists obj_
    
    
    # The cgo tool should only accept the source file if the working directory
    # is not written in line directives in the resulting files.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 07 16:54:27 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  6. src/cmd/go/internal/list/list.go

    The -compiled flag causes list to set CompiledGoFiles to the Go source
    files presented to the compiler. Typically this means that it repeats
    the files listed in GoFiles and then also adds the Go code generated
    by processing CgoFiles and SwigFiles. The Imports list contains the
    union of all imports from both GoFiles and CompiledGoFiles.
    
    The -deps flag causes list to iterate over not just the named packages
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 16 16:56:39 UTC 2024
    - 33.3K bytes
    - Viewed (0)
  7. src/cmd/go/go_test.go

    		t.Fatalf(".CgoFiles unexpectedly mentioned cache %s", tg.tempdir)
    	}
    	tg.run("list", "-compiled", "-f", `{{.Dir}}{{"\n"}}{{join .CompiledGoFiles "\n"}}`, "net")
    	if !strings.Contains(tg.stdout.String(), tg.tempdir) {
    		t.Fatalf(".CompiledGoFiles with -compiled did not mention cache %s", tg.tempdir)
    	}
    	dir := ""
    	for _, file := range strings.Split(tg.stdout.String(), "\n") {
    		if file == "" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 81.1K bytes
    - Viewed (0)
  8. src/cmd/go/internal/work/action.go

    	NeedError           bool // list needs p.Error
    	NeedExport          bool // list needs p.Export
    	NeedCompiledGoFiles bool // list needs p.CompiledGoFiles
    	AllowErrors         bool // errors don't immediately exit the program
    
    	objdirSeq int // counter for NewObjdir
    	pkgSeq    int
    
    	backgroundSh *Shell // Shell that per-Action Shells are derived from
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 15:39:17 UTC 2024
    - 32.7K bytes
    - Viewed (0)
  9. src/cmd/go/internal/load/pkg.go

    	GoFiles           []string `json:",omitempty"` // .go source files (excluding CgoFiles, TestGoFiles, XTestGoFiles)
    	CgoFiles          []string `json:",omitempty"` // .go source files that import "C"
    	CompiledGoFiles   []string `json:",omitempty"` // .go output from running cgo on CgoFiles
    	IgnoredGoFiles    []string `json:",omitempty"` // .go source files ignored due to build constraints
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 28 17:00:51 UTC 2024
    - 120K bytes
    - Viewed (0)
  10. src/cmd/go/alldocs.go

    //
    // The -compiled flag causes list to set CompiledGoFiles to the Go source
    // files presented to the compiler. Typically this means that it repeats
    // the files listed in GoFiles and then also adds the Go code generated
    // by processing CgoFiles and SwigFiles. The Imports list contains the
    // union of all imports from both GoFiles and CompiledGoFiles.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 16:54:28 UTC 2024
    - 142.4K bytes
    - Viewed (0)
Back to top