Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for Gccgoflags (0.19 sec)

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

    stdout '^\tbuild\t-ldflags=example\.com/m=-w$'
    
    go build -trimpath
    go version -m m$GOEXE
    stdout '\tbuild\t-trimpath=true$'
    
    # gccgoflags are not added when gc is used, and vice versa.
    # TODO: test gccgo.
    go build -gccgoflags=all=UNUSED
    go version -m m$GOEXE
    ! stdout gccgoflags
    
    # Build and tool tags are added but not release tags.
    # "race" is included with build tags but not "cgo".
    go build -tags=a,b
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 21:26:10 UTC 2022
    - 2.7K bytes
    - Viewed (0)
  2. src/cmd/go/internal/load/flag.go

    	"fmt"
    	"strings"
    )
    
    var (
    	BuildAsmflags   PerPackageFlag // -asmflags
    	BuildGcflags    PerPackageFlag // -gcflags
    	BuildLdflags    PerPackageFlag // -ldflags
    	BuildGccgoflags PerPackageFlag // -gccgoflags
    )
    
    // A PerPackageFlag is a command-line flag implementation (a flag.Value)
    // that allows specifying different effective flags for different packages.
    // See 'go help build' for more details about per-package flags.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 19 20:20:43 UTC 2022
    - 2.6K bytes
    - Viewed (0)
  3. src/cmd/go/internal/load/test.go

    				},
    				Imports:    ximports,
    				RawImports: rawXTestImports,
    
    				Asmflags:       p.Internal.Asmflags,
    				Gcflags:        p.Internal.Gcflags,
    				Ldflags:        p.Internal.Ldflags,
    				Gccgoflags:     p.Internal.Gccgoflags,
    				Embed:          xtestEmbed,
    				OrigImportPath: p.Internal.OrigImportPath,
    				PGOProfile:     p.Internal.PGOProfile,
    			},
    		}
    		if pxtestNeedsPtest {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 14:01:23 UTC 2024
    - 28.2K bytes
    - Viewed (0)
  4. src/cmd/go/internal/work/build.go

    	case "gccgo":
    		if load.BuildGcflags.Present() {
    			fmt.Println("go build: when using gccgo toolchain, please pass compiler flags using -gccgoflags, not -gcflags")
    		}
    		if load.BuildLdflags.Present() {
    			fmt.Println("go build: when using gccgo toolchain, please pass linker flags using -gccgoflags, not -ldflags")
    		}
    	case "gc":
    		if load.BuildGccgoflags.Present() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 17:22:59 UTC 2024
    - 33.2K bytes
    - Viewed (0)
  5. src/cmd/go/internal/work/gccgo.go

    					toPath = "." + toPath[len(base.Cwd()):]
    				}
    				args = append(args, "-ffile-prefix-map="+overlayPath+"="+toPath)
    			}
    		}
    	}
    
    	args = append(args, a.Package.Internal.Gccgoflags...)
    	for _, f := range gofiles {
    		f := mkAbs(p.Dir, f)
    		// Overlay files if necessary.
    		// See comment on gctoolchain.gc about overlay TODOs
    		f, _ = fsys.OverlayPath(f)
    		args = append(args, f)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 02 22:18:34 UTC 2024
    - 19K bytes
    - Viewed (0)
  6. src/cmd/go/internal/load/pkg.go

    			buildmode = "archive"
    		}
    	}
    	appendSetting("-buildmode", buildmode)
    	appendSetting("-compiler", cfg.BuildContext.Compiler)
    	if gccgoflags := BuildGccgoflags.String(); gccgoflags != "" && cfg.BuildContext.Compiler == "gccgo" {
    		appendSetting("-gccgoflags", gccgoflags)
    	}
    	if gcflags := BuildGcflags.String(); gcflags != "" && cfg.BuildContext.Compiler == "gc" {
    		appendSetting("-gcflags", gcflags)
    	}
    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/cmd/go/internal/work/action.go

    		// we let them use the flags specified for the command-line arguments.
    		p := &load.Package{}
    		p.Internal.CmdlinePkg = true
    		p.Internal.Ldflags = load.BuildLdflags.For(p)
    		p.Internal.Gccgoflags = load.BuildGccgoflags.For(p)
    
    		// Add implicit dependencies to pkgs list.
    		// Currently buildmode=shared forces external linking mode, and
    		// external linking mode forces an import of runtime/cgo (and
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 15:39:17 UTC 2024
    - 32.7K bytes
    - Viewed (0)
  8. src/cmd/go/internal/work/exec.go

    			cgoCFLAGS = append(cgoCFLAGS, "-fsplit-stack")
    		}
    		cgoflags = append(cgoflags, "-gccgo")
    		if pkgpath := gccgoPkgpath(p); pkgpath != "" {
    			cgoflags = append(cgoflags, "-gccgopkgpath="+pkgpath)
    		}
    		if !BuildToolchain.(gccgoToolchain).supportsCgoIncomplete(b, a) {
    			cgoflags = append(cgoflags, "-gccgo_define_cgoincomplete")
    		}
    	}
    
    	switch cfg.BuildBuildmode {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 14:46:37 UTC 2024
    - 105.6K bytes
    - Viewed (0)
  9. src/cmd/go/go_test.go

    	tg.runFail("build", "x")
    	tg.grepStderr("invalid input file name \"-y.go\"", "did not reject -y.go")
    	tg.must(os.Remove(tg.path("src/x/-y.go")))
    
    	if runtime.Compiler == "gccgo" {
    		tg.runFail("build", "-gccgoflags=all=@x", "x")
    	} else {
    		tg.runFail("build", "-gcflags=all=@x", "x")
    	}
    	tg.grepStderr("invalid command-line argument @x in command", "did not reject @x during exec")
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 81.1K bytes
    - Viewed (0)
  10. src/cmd/go/alldocs.go

    //		cannot be included due to a missing tool or ambiguous directory structure.
    //	-compiler name
    //		name of compiler to use, as in runtime.Compiler (gccgo or gc).
    //	-gccgoflags '[pattern=]arg list'
    //		arguments to pass on each gccgo compiler/linker invocation.
    //	-gcflags '[pattern=]arg list'
    //		arguments to pass on each go tool compile invocation.
    //	-installsuffix suffix
    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