Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 32 for GOENV (0.03 sec)

  1. src/cmd/go/testdata/script/env_cross_build.txt

    # building with GOENV (#46815).
    
    # Unset variables set by the TestScript harness. Users typically won't
    # explicitly configure these, and #46815 doesn't repro if they are.
    env GOOS=
    env GOARCH=
    env GOEXPERIMENT=
    
    env GOENV=windows-amd64
    go build internal/abi
    
    env GOENV=ios-arm64
    go build internal/abi
    
    env GOENV=linux-mips
    go build internal/abi
    
    -- windows-amd64 --
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 14 00:03:57 UTC 2023
    - 537 bytes
    - Viewed (0)
  2. src/cmd/go/testdata/script/env_write.txt

    stderr 'GOVERSION cannot be modified'
    ! go env -w GOENV=/env
    stderr 'GOENV can only be set using the OS environment'
    ! go env -w GODEBUG=gctrace=1
    stderr 'GODEBUG can only be set using the OS environment'
    
    # go env -w can set multiple variables
    env CC=
    go env CC
    ! stdout ^xyc$
    go env -w GOOS=$GOOS CC=xyc
    grep CC=xyc $GOENV
    # file is maintained in sorted order
    grep 'CC=xyc\nGOOS=' $GOENV
    go env CC
    stdout ^xyc$
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 18:42:31 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  3. src/cmd/link/cgo_test.go

    	t.Parallel()
    
    	goEnv := func(arg string) string {
    		cmd := testenv.Command(t, testenv.GoToolPath(t), "env", arg)
    		cmd.Stderr = new(bytes.Buffer)
    
    		line, err := cmd.Output()
    		if err != nil {
    			t.Fatalf("%v: %v\n%s", cmd, err, cmd.Stderr)
    		}
    		out := string(bytes.TrimSpace(line))
    		t.Logf("%v: %q", cmd, out)
    		return out
    	}
    
    	cc := goEnv("CC")
    	cgoCflags := goEnv("CGO_CFLAGS")
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 09 22:13:02 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  4. src/cmd/cgo/internal/testsanitizers/asan_test.go

    	"internal/platform"
    	"internal/testenv"
    	"strings"
    	"testing"
    )
    
    func TestASAN(t *testing.T) {
    	testenv.MustHaveGoBuild(t)
    	testenv.MustHaveCGO(t)
    	goos, err := goEnv("GOOS")
    	if err != nil {
    		t.Fatal(err)
    	}
    	goarch, err := goEnv("GOARCH")
    	if err != nil {
    		t.Fatal(err)
    	}
    	// The asan tests require support for the -asan option.
    	if !platform.ASanSupported(goos, goarch) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 19 01:37:31 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  5. src/cmd/cgo/internal/testsanitizers/tsan_test.go

    import (
    	"internal/testenv"
    	"strings"
    	"testing"
    )
    
    func TestTSAN(t *testing.T) {
    	testenv.MustHaveGoBuild(t)
    	testenv.MustHaveCGO(t)
    
    	goos, err := goEnv("GOOS")
    	if err != nil {
    		t.Fatal(err)
    	}
    	goarch, err := goEnv("GOARCH")
    	if err != nil {
    		t.Fatal(err)
    	}
    	// The msan tests require support for the -msan option.
    	if !compilerRequiredTsanVersion(goos, goarch) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 06 21:14:49 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  6. src/cmd/cgo/internal/testsanitizers/msan_test.go

    import (
    	"internal/platform"
    	"internal/testenv"
    	"strings"
    	"testing"
    )
    
    func TestMSAN(t *testing.T) {
    	testenv.MustHaveGoBuild(t)
    	testenv.MustHaveCGO(t)
    	goos, err := goEnv("GOOS")
    	if err != nil {
    		t.Fatal(err)
    	}
    	goarch, err := goEnv("GOARCH")
    	if err != nil {
    		t.Fatal(err)
    	}
    	// The msan tests require support for the -msan option.
    	if !platform.MSanSupported(goos, goarch) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 18 21:30:58 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  7. src/cmd/cgo/internal/testsanitizers/cshared_test.go

    	testenv.MustHaveGoBuild(t)
    	testenv.MustHaveCGO(t)
    	testenv.MustHaveBuildMode(t, "c-shared")
    
    	t.Parallel()
    	requireOvercommit(t)
    
    	GOOS, err := goEnv("GOOS")
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	GOARCH, err := goEnv("GOARCH")
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	libExt := "so"
    	if GOOS == "darwin" {
    		libExt = "dylib"
    	}
    
    	cases := []struct {
    		src       string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 19 01:37:31 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  8. src/cmd/cgo/internal/testsanitizers/libfuzzer_test.go

    	if testing.Short() {
    		t.Skip("libfuzzer tests can take upwards of minutes to run; skipping in short mode")
    	}
    	testenv.MustHaveGoBuild(t)
    	testenv.MustHaveCGO(t)
    
    	goos, err := goEnv("GOOS")
    	if err != nil {
    		t.Fatal(err)
    	}
    	goarch, err := goEnv("GOARCH")
    	if err != nil {
    		t.Fatal(err)
    	}
    	if !libFuzzerSupported(goos, goarch) {
    		t.Skipf("skipping on %s/%s; libfuzzer option is not supported.", goos, goarch)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 00:12:03 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  9. src/run.rc

    # license that can be found in the LICENSE file.
    
    rfork e
    
    if(! test -f ../bin/go){
    	echo 'run.rc must be run from $GOROOT/src after installing cmd/go' >[1=2]
    	exit wrongdir
    }
    
    GOENV=off
    eval `{../bin/go tool dist env}
    
    GOPATH=/nonexist-gopath
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 17 20:19:28 UTC 2022
    - 406 bytes
    - Viewed (0)
  10. src/cmd/cgo/internal/testerrors/badsym_test.go

    		}
    	}
    }
    
    func cCompilerCmd(t *testing.T) []string {
    	cc, err := quoted.Split(goEnv(t, "CC"))
    	if err != nil {
    		t.Skipf("parsing go env CC: %s", err)
    	}
    	if len(cc) == 0 {
    		t.Skipf("no C compiler")
    	}
    	testenv.MustHaveExecPath(t, cc[0])
    
    	out := goEnv(t, "GOGCCFLAGS")
    	quote := '\000'
    	start := 0
    	lastSpace := true
    	backslash := false
    	s := string(out)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 19 01:37:31 UTC 2023
    - 5.7K bytes
    - Viewed (0)
Back to top