Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 14 of 14 for buildModeSupported (0.46 sec)

  1. 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)
  2. 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)
  3. src/cmd/cgo/internal/testshared/shared_test.go

    	if testing.Short() && os.Getenv("GO_BUILDER_NAME") == "" {
    		globalSkip = func(t testing.TB) { t.Skip("short mode and $GO_BUILDER_NAME not set") }
    		return m.Run(), nil
    	}
    	if !platform.BuildModeSupported(runtime.Compiler, "shared", runtime.GOOS, runtime.GOARCH) {
    		globalSkip = func(t testing.TB) { t.Skip("shared build mode not supported") }
    		return m.Run(), nil
    	}
    	if !testenv.HasCGO() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Aug 26 01:54:41 UTC 2023
    - 36.3K bytes
    - Viewed (0)
  4. 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)
Back to top