- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 10 for MustLinkExternal (0.22 sec)
-
src/cmd/dist/build_test.go
"testing" ) // TestMustLinkExternal verifies that the mustLinkExternal helper // function matches internal/platform.MustLinkExternal. func TestMustLinkExternal(t *testing.T) { 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 {
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/link/internal/ld/config.go
} // mustLinkExternal reports whether the program being linked requires // the external linker be used to complete the link. func mustLinkExternal(ctxt *Link) (res bool, reason string) { if ctxt.Debugvlog > 1 { defer func() { if res { ctxt.Logf("external linking is forced by: %s\n", reason) } }() } if platform.MustLinkExternal(buildcfg.GOOS, buildcfg.GOARCH, false) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Aug 23 05:14:11 UTC 2023 - 5.6K bytes - Viewed (0) -
src/cmd/go/scriptconds_test.go
GOOS, _ := s.LookupEnv("GOOS") GOARCH, _ := s.LookupEnv("GOARCH") return platform.MustLinkExternal(GOOS, GOARCH, true), nil } func mustLinkExt(s *script.State) (bool, error) { GOOS, _ := s.LookupEnv("GOOS") GOARCH, _ := s.LookupEnv("GOARCH") return platform.MustLinkExternal(GOOS, GOARCH, false), nil } func pieLinkExt(s *script.State) (bool, error) { GOOS, _ := s.LookupEnv("GOOS")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 21 22:16:54 UTC 2024 - 7.4K bytes - Viewed (0) -
src/internal/platform/supported.go
case "amd64", "arm64": // TODO(#14565): support more architectures. return FuzzSupported(goos, goarch) default: return false } } // MustLinkExternal reports whether goos/goarch requires external linking // with or without cgo dependencies. func MustLinkExternal(goos, goarch string, withCgo bool) bool { if withCgo { switch goarch { case "loong64", "mips", "mipsle", "mips64", "mips64le":
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat May 04 07:50:22 UTC 2024 - 7.6K bytes - Viewed (0) -
src/cmd/dist/build.go
fatalf("%s should not exist in release build", p) } } } } /* * Tool building */ // 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 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 20 18:34:40 UTC 2024 - 54K bytes - Viewed (0) -
src/internal/testenv/testenv_test.go
// will not be able to exec, so we may as well allow that now. t.Logf("HasGoBuild is false on %s", b) return } case "android": if isEmulatedBuilder(b) && platform.MustLinkExternal(runtime.GOOS, runtime.GOARCH, false) { // As of 2023-05-02, the test environment on the emulated builders is // missing a C linker. t.Logf("HasGoBuild is false on %s", b) return } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jan 25 23:12:44 UTC 2024 - 6.1K bytes - Viewed (0) -
src/internal/testenv/testenv.go
if len(out) == 0 { goBuildErr = fmt.Errorf("%v: no tool reported", cmd) return } if _, err := exec.LookPath(string(out)); err != nil { goBuildErr = err return } if platform.MustLinkExternal(runtime.GOOS, runtime.GOARCH, false) { // We can assume that we always have a complete Go toolchain available. // However, this platform requires a C linker to build even pure Go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 16:41:38 UTC 2024 - 15.7K bytes - Viewed (0) -
src/syscall/exec_linux_test.go
os.Exit(2) } os.Exit(0) } d := t.TempDir() // Since we are doing a chroot, we need the binary there, // and it must be statically linked. testenv.MustHaveGoBuild(t) if platform.MustLinkExternal(runtime.GOOS, runtime.GOARCH, false) { t.Skipf("skipping: can't build static binary because %s/%s requires external linking", runtime.GOOS, runtime.GOARCH) } x := filepath.Join(d, "syscall.test") t.Cleanup(func() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 07:45:37 UTC 2024 - 20.6K bytes - Viewed (0) -
src/cmd/go/internal/work/gc.go
// linker's build id, which will cause our build id to not // match the next time the tool is built. // Rely on the external build id instead. if !platform.MustLinkExternal(cfg.Goos, cfg.Goarch, false) { ldflags = append(ldflags, "-X=cmd/internal/objabi.buildID="+root.buildID) } } // Store default GODEBUG in binaries. if root.Package.DefaultGODEBUG != "" {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 18 15:37:44 UTC 2024 - 23K bytes - Viewed (0) -
src/cmd/go/internal/load/pkg.go
// linking is not required. func externalLinkingReason(p *Package) (what string) { // Some targets must use external linking even inside GOROOT. if platform.MustLinkExternal(cfg.Goos, cfg.Goarch, false) { return cfg.Goos + "/" + cfg.Goarch } // Some build modes always require external linking. switch cfg.BuildBuildmode { case "c-shared", "plugin":
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 28 17:00:51 UTC 2024 - 120K bytes - Viewed (0)