- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 92 for cgoEnabled (0.14 sec)
-
src/cmd/dist/build_test.go
for _, goos := range okgoos { for _, goarch := range okgoarch { for _, cgoEnabled := range []bool{true, false} { got := mustLinkExternal(goos, goarch, cgoEnabled) want := platform.MustLinkExternal(goos, goarch, cgoEnabled) if got != want { t.Errorf("mustLinkExternal(%q, %q, %v) = %v; want %v", goos, goarch, cgoEnabled, got, want) } } } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 02 16:34:21 UTC 2023 - 757 bytes - Viewed (0) -
src/cmd/go/internal/list/context.go
} func newContext(c *build.Context) *Context { return &Context{ GOARCH: c.GOARCH, GOOS: c.GOOS, GOROOT: c.GOROOT, GOPATH: c.GOPATH, CgoEnabled: c.CgoEnabled, UseAllFiles: c.UseAllFiles, Compiler: c.Compiler, BuildTags: c.BuildTags, ToolTags: c.ToolTags, ReleaseTags: c.ReleaseTags, InstallSuffix: c.InstallSuffix, }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 29 21:56:16 UTC 2023 - 1.5K bytes - Viewed (0) -
src/cmd/go/internal/cfg/cfg.go
// without a C compiler installed. if ctxt.CgoEnabled { if os.Getenv("CC") == "" { cc := DefaultCC(ctxt.GOOS, ctxt.GOARCH) if _, err := LookPath(cc); err != nil { defaultCgoEnabled = false } } } } ctxt.CgoEnabled = defaultCgoEnabled if v := Getenv("CGO_ENABLED"); v == "0" || v == "1" { ctxt.CgoEnabled = v[0] == '1' }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 17:13:51 UTC 2024 - 19.3K bytes - Viewed (0) -
src/cmd/vet/vet_test.go
} }) } func cgoEnabled(t *testing.T) bool { // Don't trust build.Default.CgoEnabled as it is false for // cross-builds unless CGO_ENABLED is explicitly specified. // That's fine for the builders, but causes commands like // 'GOARCH=386 go test .' to fail. // Instead, we ask the go command. cmd := testenv.Command(t, testenv.GoToolPath(t), "list", "-f", "{{context.CgoEnabled}}") out, _ := cmd.CombinedOutput()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 01:02:40 UTC 2024 - 12.5K bytes - Viewed (0) -
src/cmd/dist/supported_test.go
"pie", "c-archive", "c-shared", "shared", "plugin", } for _, a := range okgoarch { goarch = a for _, o := range okgoos { if _, ok := cgoEnabled[o+"/"+a]; !ok { continue } goos = o for _, mode := range modes { var dt tester dist := dt.supportedBuildmode(mode) std := platform.BuildModeSupported("gc", mode, o, a)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 26 19:58:28 UTC 2024 - 1.1K bytes - Viewed (0) -
src/cmd/go/internal/imports/tags.go
return tags } func loadTags() map[string]bool { tags := map[string]bool{ cfg.BuildContext.GOOS: true, cfg.BuildContext.GOARCH: true, cfg.BuildContext.Compiler: true, } if cfg.BuildContext.CgoEnabled { tags["cgo"] = true } for _, tag := range cfg.BuildContext.BuildTags { tags[tag] = true } for _, tag := range cfg.BuildContext.ToolTags { tags[tag] = true }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Aug 26 17:43:59 UTC 2022 - 1.3K bytes - Viewed (0) -
src/internal/platform/zosarch.go
// Code generated by go test internal/platform -fix. DO NOT EDIT. // To change the information in this file, edit the cgoEnabled and/or firstClass // maps in cmd/dist/build.go, then run 'go generate internal/platform'. package platform // List is the list of all valid GOOS/GOARCH combinations, // including known-broken ports. var List = []OSArch{ {"aix", "ppc64"}, {"android", "386"}, {"android", "amd64"}, {"android", "arm"},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jan 25 09:19:16 UTC 2024 - 3.8K bytes - Viewed (0) -
src/internal/platform/zosarch_test.go
t.Fatal(err) } } const zosarchTmpl = `// Code generated by go test internal/platform -fix. DO NOT EDIT. // To change the information in this file, edit the cgoEnabled and/or firstClass // maps in cmd/dist/build.go, then run 'go generate internal/platform'. package platform // List is the list of all valid GOOS/GOARCH combinations, // including known-broken ports.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jun 22 19:44:52 UTC 2023 - 2.9K bytes - Viewed (0) -
src/cmd/dist/build.go
// mustLinkExternal is a copy of internal/platform.MustLinkExternal, // duplicated here to avoid version skew in the MustLinkExternal function // during bootstrapping. func mustLinkExternal(goos, goarch string, cgoEnabled bool) bool { if cgoEnabled { switch goarch { case "loong64", "mips", "mipsle", "mips64", "mips64le": // Internally linking cgo is incomplete on some architectures. // https://golang.org/issue/14449 return true
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 20 18:34:40 UTC 2024 - 54K bytes - Viewed (0) -
src/cmd/dist/test.go
} cmd := exec.Command(gorootBinGo, "env", "CGO_ENABLED") cmd.Stderr = new(bytes.Buffer) slurp, err := cmd.Output() if err != nil { fatalf("Error running %s: %v\n%s", cmd, err, cmd.Stderr) } parts := strings.Split(string(slurp), "\n") if nlines := len(parts) - 1; nlines < 1 { fatalf("Error running %s: output contains <1 lines\n%s", cmd, cmd.Stderr) } t.cgoEnabled, _ = strconv.ParseBool(parts[0])
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 20 16:01:35 UTC 2024 - 50K bytes - Viewed (0)