- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 36 for goGcflags (0.19 sec)
-
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) -
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) -
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) -
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) -
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) -
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) -
src/cmd/cgo/internal/testerrors/errors_test.go
if err != nil { t.Fatal(err) } defer os.RemoveAll(dir) dst := filepath.Join(dir, strings.TrimSuffix(file, ".go")) cmd := exec.Command("go", "build", "-gcflags=-L -e", "-o="+dst, path(file)) // TODO(gri) no need for -gcflags=-L if go tool is adjusted out, err := cmd.CombinedOutput() if err == nil { t.Errorf("expected cgo to fail but it succeeded") } lines := bytes.Split(out, []byte("\n"))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 20 15:50:06 UTC 2024 - 4K bytes - Viewed (0) -
src/make.rc
# GOHOSTARCH=386 on an amd64 machine. # # GOARCH: The target architecture for installed packages and tools. # # GOOS: The target operating system for installed packages and tools. # # GO_GCFLAGS: Additional go tool compile arguments to use when # building the packages and commands. # # GO_LDFLAGS: Additional go tool link arguments to use when # building the commands. #
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 13:48:46 UTC 2024 - 3.7K bytes - Viewed (0) -
src/cmd/cgo/internal/testplugin/plugin_test.go
"internal/platform" "internal/testenv" "log" "os" "os/exec" "path/filepath" "runtime" "strings" "testing" "time" ) var globalSkip = func(t *testing.T) {} var gcflags string = os.Getenv("GO_GCFLAGS") var goroot string func TestMain(m *testing.M) { flag.Parse() log.SetFlags(log.Lshortfile) os.Exit(testMain(m)) } // tmpDir is used to cleanup logged commands -- s/tmpDir/$TMPDIR/
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 20 15:32:53 UTC 2024 - 12.3K bytes - Viewed (0) -
src/internal/testenv/testenv.go
// and then run them with os.StartProcess or exec.Command. func HasGoBuild() bool { if os.Getenv("GO_GCFLAGS") != "" { // It's too much work to require every caller of the go command // to pass along "-gcflags="+os.Getenv("GO_GCFLAGS"). // For now, if $GO_GCFLAGS is set, report that we simply can't // run go build. return false } goBuildOnce.Do(func() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 16:41:38 UTC 2024 - 15.7K bytes - Viewed (0)