Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 165 for goGcflags (0.21 sec)

  1. hack/lib/golang.sh

      if [[ "${DBG:-}" == 1 ]]; then
          # Debugging - disable optimizations and inlining and trimPath
          gogcflags="${gogcflags} all=-N -l"
      else
          # Not debugging - disable symbols and DWARF, trim embedded paths
          goldflags="${goldflags} -s -w"
          goflags+=("-trimpath")
      fi
    
      # Extract tags if any specified in GOFLAGS
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jun 01 16:43:08 UTC 2024
    - 32.8K bytes
    - Viewed (0)
  2. src/cmd/dist/build.go

    	goCmd(env, goBinary, "install", args...)
    }
    
    func appendCompilerFlags(args []string) []string {
    	if gogcflags != "" {
    		args = append(args, "-gcflags=all="+gogcflags)
    	}
    	if goldflags != "" {
    		args = append(args, "-ldflags=all="+goldflags)
    	}
    	return args
    }
    
    func goCmd(env []string, goBinary string, cmd string, args ...string) {
    	goCmd := []string{goBinary, cmd}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 18:34:40 UTC 2024
    - 54K bytes
    - Viewed (0)
  3. src/cmd/internal/testdir/testdir_test.go

    		return true
    	}
    
    	return false
    }
    
    // goGcflags returns the -gcflags argument to use with go build / go run.
    // This must match the flags used for building the standard library,
    // or else the commands will rebuild any needed packages (like runtime)
    // over and over.
    func (test) goGcflags() string {
    	return "-gcflags=all=" + os.Getenv("GO_GCFLAGS")
    }
    
    func (test) goGcflagsIsEmpty() bool {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 20:08:06 UTC 2024
    - 57.5K bytes
    - Viewed (0)
  4. build/root/Makefile

    .EXPORT_ALL_VARIABLES:
    OUT_DIR ?= _output
    BIN_DIR := $(OUT_DIR)/bin
    
    ifdef KUBE_GOFLAGS
    $(info KUBE_GOFLAGS is now deprecated. Please use GOFLAGS instead.)
    ifndef GOFLAGS
    GOFLAGS := $(KUBE_GOFLAGS)
    unexport KUBE_GOFLAGS
    else
    $(error Both KUBE_GOFLAGS and GOFLAGS are set. Please use just GOFLAGS)
    endif
    endif
    
    # This controls the verbosity of the build.  Higher numbers mean more output.
    KUBE_VERBOSE ?= 1
    
    define ALL_HELP_INFO
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jun 01 16:43:08 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/debug_test.go

    var debugger = "dlv" // For naming files, etc.
    
    var gogcflags = os.Getenv("GO_GCFLAGS")
    
    // optimizedLibs usually means "not running in a noopt test builder".
    var optimizedLibs = (!strings.Contains(gogcflags, "-N") && !strings.Contains(gogcflags, "-l"))
    
    // TestNexting go-builds a file, then uses a debugger (default delve, optionally gdb)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 16:11:47 UTC 2024
    - 28.6K bytes
    - Viewed (0)
  6. build/common.sh

        --env "GO_VERSION=${GO_VERSION:-}"
        --env "GOTOOLCHAIN=${GOTOOLCHAIN:-}"
        --env "GOFLAGS=${GOFLAGS:-}"
        --env "GOGCFLAGS=${GOGCFLAGS:-}"
        --env "SOURCE_DATE_EPOCH=${SOURCE_DATE_EPOCH:-}"
      )
    
      # use GOLDFLAGS only if it is set explicitly.
      if [[ -v GOLDFLAGS ]]; then
        docker_run_opts+=(
          --env "GOLDFLAGS=${GOLDFLAGS:-}"
        )
      fi
    
      if [[ -n "${DOCKER_CGROUP_PARENT:-}" ]]; then
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 06 16:13:15 UTC 2024
    - 26.5K bytes
    - Viewed (0)
  7. src/cmd/dist/test.go

    		run = append(run, "-run="+opts.runTests)
    	}
    	if opts.cpu != "" {
    		run = append(run, "-cpu="+opts.cpu)
    	}
    	if t.json {
    		run = append(run, "-json")
    	}
    
    	if opts.gcflags != "" {
    		build = append(build, "-gcflags=all="+opts.gcflags)
    	}
    	if opts.ldflags != "" {
    		build = append(build, "-ldflags="+opts.ldflags)
    	}
    	if opts.buildmode != "" {
    		build = append(build, "-buildmode="+opts.buildmode)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 16:01:35 UTC 2024
    - 50K bytes
    - Viewed (0)
  8. src/cmd/cgo/internal/testsanitizers/cc_test.go

    		ldFlags:   []string{"-fsanitize=" + sanitizer},
    	}
    
    	if testing.Verbose() {
    		c.goFlags = append(c.goFlags, "-x")
    	}
    
    	switch sanitizer {
    	case "memory":
    		c.goFlags = append(c.goFlags, "-msan")
    
    	case "thread":
    		c.goFlags = append(c.goFlags, "--installsuffix=tsan")
    		compiler, _ := compilerVersion()
    		if compiler.name == "gcc" {
    			c.cFlags = append(c.cFlags, "-fPIC")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 09 20:00:56 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  9. src/cmd/go/testdata/script/goflags.txt

    env GOFLAGS=-f
    ! go list runtime
    stderr '^go: flag needs an argument: -f \(from (\$GOFLAGS|%GOFLAGS%)\)$'
    
    env GOFLAGS=-e=asdf
    ! go list runtime
    stderr '^go: invalid boolean value \"asdf\" for flag -e \(from (\$GOFLAGS|%GOFLAGS%)\)'
    
    # except in go bug (untested) and go env
    go env
    stdout GOFLAGS
    
    # Flags listed in GOFLAGS should be safe to duplicate on the command line.
    env GOFLAGS=-tags=magic
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 25 16:47:27 UTC 2022
    - 1.5K bytes
    - Viewed (0)
  10. src/cmd/go/internal/base/goflags.go

    	"cmd/internal/quoted"
    )
    
    var goflags []string // cached $GOFLAGS list; can be -x or --x form
    
    // GOFLAGS returns the flags from $GOFLAGS.
    // The list can be assumed to contain one string per flag,
    // with each string either beginning with -name or --name.
    func GOFLAGS() []string {
    	InitGOFLAGS()
    	return goflags
    }
    
    // InitGOFLAGS initializes the goflags list from $GOFLAGS.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 19 14:42:39 UTC 2023
    - 4.5K bytes
    - Viewed (0)
Back to top