Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 92 for cgoEnabled (0.18 sec)

  1. src/syscall/syscall_linux_test.go

    // that mirror to the 9 glibc syscalls with POSIX semantics. The test
    // here is considered authoritative and should compile and run
    // CGO_ENABLED=0 or 1. Note, there is an extended copy of this same
    // test in ../../misc/cgo/test/issue1435.go which requires
    // CGO_ENABLED=1 and launches pthreads from C that run concurrently
    // with the Go code of the test - and the test validates that these
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 23K bytes
    - Viewed (0)
  2. misc/go_android_exec/main.go

    			adb("exec-out", "killall -QUIT "+binName)
    		}
    	}()
    	cmd := `export TMPDIR="` + deviceGotmp + `"` +
    		`; export GOROOT="` + deviceGoroot + `"` +
    		`; export GOPATH="` + deviceGopath + `"` +
    		`; export CGO_ENABLED=0` +
    		`; export GOPROXY=` + os.Getenv("GOPROXY") +
    		`; export GOCACHE="` + deviceRoot + `/gocache"` +
    		`; export PATH="` + deviceGoroot + `/bin":$PATH` +
    		`; export HOME="` + deviceRoot + `/home"` +
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 21 17:46:57 UTC 2023
    - 15.3K bytes
    - Viewed (0)
  3. src/cmd/go/testdata/script/README

    [asan]
    	GOOS/GOARCH supports -asan
    [buildmode:*]
    	go supports -buildmode=<suffix>
    [case-sensitive]
    	$WORK filesystem is case-sensitive
    [cc:*]
    	go env CC = <suffix> (ignoring the go/env file)
    [cgo]
    	host CGO_ENABLED
    [cgolinkext]
    	platform requires external linking for cgo
    [compiler:*]
    	runtime.Compiler == <suffix>
    [cross]
    	cmd/go GOOS/GOARCH != GOHOSTOS/GOHOSTARCH
    [exec:*]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 22:16:54 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  4. src/internal/testenv/testenv.go

    // HasCGO reports whether the current system can use cgo.
    func HasCGO() bool {
    	hasCgoOnce.Do(func() {
    		goTool, err := GoTool()
    		if err != nil {
    			return
    		}
    		cmd := exec.Command(goTool, "env", "CGO_ENABLED")
    		cmd.Env = origEnv
    		out, err := cmd.Output()
    		if err != nil {
    			panic(fmt.Sprintf("%v: %v", cmd, out))
    		}
    		hasCgo, err = strconv.ParseBool(string(bytes.TrimSpace(out)))
    		if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 16:41:38 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"(*NoGoError).Error", Method, 0},
    		{"(*Package).IsCommand", Method, 0},
    		{"AllowBinary", Const, 0},
    		{"ArchChar", Func, 0},
    		{"Context", Type, 0},
    		{"Context.BuildTags", Field, 0},
    		{"Context.CgoEnabled", Field, 0},
    		{"Context.Compiler", Field, 0},
    		{"Context.Dir", Field, 14},
    		{"Context.GOARCH", Field, 0},
    		{"Context.GOOS", Field, 0},
    		{"Context.GOPATH", Field, 0},
    		{"Context.GOROOT", Field, 0},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
  6. src/syscall/exec_linux_test.go

    		if _, err := os.Stat(d); err == nil {
    			syscall.Unmount(d, syscall.MNT_FORCE)
    		}
    	})
    
    	cmd := testenv.Command(t, testenv.GoToolPath(t), "test", "-c", "-o", x, "syscall")
    	cmd.Env = append(cmd.Environ(), "CGO_ENABLED=0")
    	if o, err := cmd.CombinedOutput(); err != nil {
    		t.Fatalf("%v: %v\n%s", cmd, err, o)
    	}
    
    	cmd = testenv.Command(t, "/syscall.test", "-test.run=^TestUnshareMountNameSpaceChroot$", "/")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 07:45:37 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  7. src/cmd/go/internal/help/helpdoc.go

    Environment variables for use with cgo:
    
    	AR
    		The command to use to manipulate library archives when
    		building with the gccgo compiler.
    		The default is 'ar'.
    	CC
    		The command to use to compile C code.
    	CGO_ENABLED
    		Whether the cgo command is supported. Either 0 or 1.
    	CGO_CFLAGS
    		Flags that cgo will pass to the compiler when compiling
    		C code.
    	CGO_CFLAGS_ALLOW
    		A regular expression specifying additional flags to allow
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 16:54:28 UTC 2024
    - 36.3K bytes
    - Viewed (0)
  8. src/cmd/link/link_test.go

    	tmpDir := t.TempDir()
    
    	ar := filepath.Join(tmpDir, "lib.a")
    	cmd := testenv.Command(t, testenv.GoToolPath(t), "build", "-buildmode=c-archive", "-o", ar, lib)
    	env := []string{
    		"CGO_ENABLED=1",
    		"GOOS=ios",
    		"GOARCH=arm64",
    		"CC=" + strings.Join(CC, " "),
    		"CGO_CFLAGS=", // ensure CGO_CFLAGS does not contain any flags. Issue #35459
    		"CGO_LDFLAGS=" + strings.Join(CGO_LDFLAGS, " "),
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 20:26:02 UTC 2024
    - 43.5K bytes
    - Viewed (0)
  9. src/net/lookup_test.go

    		// than other platforms for some reason.
    		// When we monitor the number of allocated Ms by
    		// observing on runtime.newm calls, we can see that it
    		// easily reaches the per process ceiling
    		// kern.num_threads when CGO_ENABLED=1 and
    		// GODEBUG=netdns=go.
    		N = 500
    	}
    
    	const timeout = 3 * time.Second
    	ctxHalfTimeout, cancel := context.WithTimeout(context.Background(), timeout/2)
    	defer cancel()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 41.4K bytes
    - Viewed (0)
  10. src/cmd/cgo/doc.go

    as well as when the CC environment variable is unset and the default
    C compiler (typically gcc or clang) cannot be found on the system PATH.
    You can override the default by setting the CGO_ENABLED
    environment variable when running the go tool: set it to 1 to enable
    the use of cgo, and to 0 to disable it. The go tool will set the
    build constraint "cgo" if cgo is enabled. The special import "C"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 17:12:16 UTC 2024
    - 42.2K bytes
    - Viewed (0)
Back to top