- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for buildModeSupported (0.26 sec)
-
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/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/internal/testenv/testenv.go
// the given build mode. // If not, MustHaveBuildMode calls t.Skip with an explanation. func MustHaveBuildMode(t testing.TB, buildmode string) { if !platform.BuildModeSupported(runtime.Compiler, buildmode, runtime.GOOS, runtime.GOARCH) { t.Skipf("skipping test: build mode %s on %s/%s is not supported by the %s compiler", buildmode, runtime.GOOS, runtime.GOARCH, runtime.Compiler) } }
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/cmd/go/internal/work/action.go
fmt.Fprintf(os.Stderr, "go: internal error: Builder leaked on successful exit\n") base.SetExitStatus(1) } } func CheckGOOSARCHPair(goos, goarch string) error { if !platform.BuildModeSupported(cfg.BuildContext.Compiler, "default", goos, goarch) { return fmt.Errorf("unsupported GOOS/GOARCH pair %s/%s", goos, goarch) } return nil }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 18 15:39:17 UTC 2024 - 32.7K bytes - Viewed (0) -
src/cmd/go/go_test.go
tg.runFail("run", path) tg.grepStderr("compile", "does not match go tool version") } func TestBuildmodePIE(t *testing.T) { tooSlow(t, "links binaries") if !platform.BuildModeSupported(runtime.Compiler, "pie", runtime.GOOS, runtime.GOARCH) { t.Skipf("skipping test because buildmode=pie is not supported on %s/%s", runtime.GOOS, runtime.GOARCH) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 81.1K bytes - Viewed (0)