Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 66 for goGcflags (0.16 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/internal/cfg/cfg.go

    	CGO_LDFLAGS_ALLOW
    	CGO_LDFLAGS_DISALLOW
    	CXX
    	FC
    	GCCGO
    	GO111MODULE
    	GO386
    	GOAMD64
    	GOARCH
    	GOARM
    	GOARM64
    	GOBIN
    	GOCACHE
    	GOCACHEPROG
    	GOENV
    	GOEXE
    	GOEXPERIMENT
    	GOFLAGS
    	GOGCCFLAGS
    	GOHOSTARCH
    	GOHOSTOS
    	GOINSECURE
    	GOMIPS
    	GOMIPS64
    	GOMODCACHE
    	GONOPROXY
    	GONOSUMDB
    	GOOS
    	GOPATH
    	GOPPC64
    	GOPRIVATE
    	GOPROXY
    	GORISCV64
    	GOROOT
    	GOSUMDB
    	GOTMPDIR
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 06 01:33:19 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  10. src/cmd/go/internal/envcmd/env.go

    		switch ev.Name {
    		case "GOGCCFLAGS": // GOGCCFLAGS cannot be modified
    		case "CGO_CPPFLAGS":
    			ev.Changed = ev.Value != ""
    		case "PKG_CONFIG":
    			ev.Changed = ev.Value != cfg.DefaultPkgConfig
    		case "CGO_CXXFLAGS", "CGO_CFLAGS", "CGO_FFLAGS", "GGO_LDFLAGS":
    			ev.Changed = ev.Value != work.DefaultCFlags
    		}
    	}
    
    	return ret
    }
    
    // argKey returns the KEY part of the arg KEY=VAL, or else arg itself.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 17:13:51 UTC 2024
    - 19.6K bytes
    - Viewed (0)
Back to top