- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 14 for buildModeSupported (0.42 sec)
-
src/cmd/dist/supported_test.go
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) if dist != std { t.Errorf("discrepancy for %s-%s %s: dist says %t, standard library says %t", o, a, mode, dist, std) } } } }
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/internal/platform/supported.go
return true } case "ios": if goarch == "arm64" { return true } } return false } // BuildModeSupported reports whether goos/goarch supports the given build mode // using the given compiler. // There is a copy of this function in cmd/dist/test.go. func BuildModeSupported(compiler, buildmode, goos, goarch string) bool { if compiler == "gccgo" { return true }
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/link/internal/ld/config.go
case "c-archive": *mode = BuildModeCArchive case "c-shared": *mode = BuildModeCShared case "shared": *mode = BuildModeShared case "plugin": *mode = BuildModePlugin } if !platform.BuildModeSupported("gc", s, buildcfg.GOOS, buildcfg.GOARCH) { return fmt.Errorf("buildmode %s not supported on %s/%s", s, buildcfg.GOOS, buildcfg.GOARCH) } return nil } func (mode BuildMode) String() string {
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/internal/work/init.go
} if cfg.BuildBuildmode != "default" && !platform.BuildModeSupported(cfg.BuildToolchainName, cfg.BuildBuildmode, cfg.Goos, cfg.Goarch) { base.Fatalf("-buildmode=%s not supported on %s/%s\n", cfg.BuildBuildmode, cfg.Goos, cfg.Goarch) } if cfg.BuildLinkshared { if !platform.BuildModeSupported(cfg.BuildToolchainName, "shared", cfg.Goos, cfg.Goarch) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 28 19:13:34 UTC 2023 - 12.2K bytes - Viewed (0) -
src/cmd/link/dwarf_test.go
} func TestDWARF(t *testing.T) { testDWARF(t, "", true) if !testing.Short() { if runtime.GOOS == "windows" { t.Skip("skipping Windows/c-archive; see Issue 35512 for more.") } if !platform.BuildModeSupported(runtime.Compiler, "c-archive", runtime.GOOS, runtime.GOARCH) { t.Skipf("skipping c-archive test on unsupported platform %s-%s", runtime.GOOS, runtime.GOARCH) } t.Run("c-archive", func(t *testing.T) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 03 17:05:14 UTC 2023 - 6.9K bytes - Viewed (0) -
src/cmd/go/scriptconds_test.go
}) } func hasBuildmode(s *script.State, mode string) (bool, error) { GOOS, _ := s.LookupEnv("GOOS") GOARCH, _ := s.LookupEnv("GOARCH") return platform.BuildModeSupported(runtime.Compiler, mode, GOOS, GOARCH), nil } var scriptNetEnabled sync.Map // testing.TB → already enabled func hasNet(s *script.State, host string) (bool, error) { if !testenv.HasExternalNetwork() {
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/cmd/objdump/objdump_test.go
case "plan9": t.Skipf("skipping on %s", runtime.GOOS) } t.Parallel() testDisasm(t, "fmthello.go", false, false, "-ldflags=-linkmode=external") } func TestDisasmPIE(t *testing.T) { if !platform.BuildModeSupported("gc", "pie", runtime.GOOS, runtime.GOARCH) { t.Skipf("skipping on %s/%s, PIE buildmode not supported", runtime.GOOS, runtime.GOARCH) } if !platform.InternalLinkPIESupported(runtime.GOOS, runtime.GOARCH) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 21 22:16:54 UTC 2024 - 8.9K bytes - Viewed (0) -
src/cmd/cgo/internal/testplugin/plugin_test.go
func testMain(m *testing.M) int { if testing.Short() && os.Getenv("GO_BUILDER_NAME") == "" { globalSkip = func(t *testing.T) { t.Skip("short mode and $GO_BUILDER_NAME not set") } return m.Run() } if !platform.BuildModeSupported(runtime.Compiler, "plugin", runtime.GOOS, runtime.GOARCH) { globalSkip = func(t *testing.T) { t.Skip("plugin build mode not supported") } return m.Run() } if !testenv.HasCGO() {
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/cmd/dist/test.go
return goarch == "amd64" default: return false } } // buildModeSupported is a copy of the function // internal/platform.BuildModeSupported, which can't be used here // because cmd/dist can not import internal packages during bootstrap. func buildModeSupported(compiler, buildmode, goos, goarch string) bool { if compiler == "gccgo" { return true }
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/link/elf_test.go
// On some systems -buildmode=pie implies -linkmode=external, so just // always skip the test if cgo is not supported. testenv.MustHaveCGO(t) if !platform.BuildModeSupported(runtime.Compiler, "pie", runtime.GOOS, runtime.GOARCH) { t.Skip("-buildmode=pie not supported") } t.Parallel() tmpl := template.Must(template.New("pie").Parse(pieSourceTemplate))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 18 16:34:01 UTC 2023 - 13.7K bytes - Viewed (0)