- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 92 for cgoEnabled (0.21 sec)
-
src/go/types/stdlib_test.go
} return pkg, nil } // pkgFilenames returns the list of package filenames for the given directory. func pkgFilenames(dir string, includeTest bool) ([]string, error) { ctxt := build.Default ctxt.CgoEnabled = false pkg, err := ctxt.ImportDir(dir, 0) if err != nil { if _, nogo := err.(*build.NoGoError); nogo { return nil, nil // no *.go files, not an error } return nil, err }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Dec 19 04:39:56 UTC 2023 - 13.7K bytes - Viewed (0) -
src/cmd/go/internal/envcmd/env.go
env = append(env, cfg.EnvVar{Name: "CXX", Value: cxx, Changed: cxxChanged}) if cfg.BuildContext.CgoEnabled { env = append(env, cfg.EnvVar{Name: "CGO_ENABLED", Value: "1", Changed: cfg.CGOChanged}) } else { env = append(env, cfg.EnvVar{Name: "CGO_ENABLED", Value: "0", Changed: cfg.CGOChanged}) } return env } func findEnv(env []cfg.EnvVar, name string) string {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 17:13:51 UTC 2024 - 19.6K bytes - Viewed (0) -
src/cmd/go/internal/search/search.go
treeCanMatch = pkgpattern.TreeCanMatchPattern(m.pattern) } have := map[string]bool{ "builtin": true, // ignore pseudo-package that exists only for documentation } if !cfg.BuildContext.CgoEnabled { have["runtime/cgo"] = true // ignore during walk } for _, src := range cfg.BuildContext.SrcDirs() { if (m.pattern == "std" || m.pattern == "cmd") && src != cfg.GOROOTsrc { continue }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 31 20:33:05 UTC 2023 - 15.4K bytes - Viewed (0) -
src/cmd/go/go_test.go
// CGO_ENABLED. tg.setenv("CGO_ENABLED", "1") tg.run("list", "-f", "{{.SysoFiles}}", "syso") tg.grepStdout("a.syso", "missing syso file with CGO_ENABLED=1") tg.setenv("CGO_ENABLED", "0") tg.run("list", "-f", "{{.SysoFiles}}", "syso") tg.grepStdout("a.syso", "missing syso file with CGO_ENABLED=0") tg.setenv("CGO_ENABLED", "1")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 81.1K bytes - Viewed (0) -
src/go/build/build_test.go
// TestCgoImportsIgnored checks that imports in cgo files are not included // in the imports list when cgo is disabled. // Verifies golang.org/issue/35946. func TestCgoImportsIgnored(t *testing.T) { ctxt := Default ctxt.CgoEnabled = false p, err := ctxt.ImportDir("testdata/cgo_disabled", 0) if err != nil { t.Fatal(err) } for _, path := range p.Imports { if path == "should/be/ignored" {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 15 16:24:01 UTC 2023 - 23.9K bytes - Viewed (0) -
src/cmd/go/internal/load/pkg.go
appendSetting("-trimpath", "true") } if p.DefaultGODEBUG != "" { appendSetting("DefaultGODEBUG", p.DefaultGODEBUG) } cgo := "0" if cfg.BuildContext.CgoEnabled { cgo = "1" } appendSetting("CGO_ENABLED", cgo) // https://go.dev/issue/52372: only include CGO flags if -trimpath is not set. // (If -trimpath is set, it is possible that these flags include system paths.)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 28 17:00:51 UTC 2024 - 120K bytes - Viewed (0) -
src/cmd/go/internal/modindex/read.go
} } var fileList *[]string var importMap, embedMap map[string][]token.Position var directives *[]build.Directive switch { case isCgo: allTags["cgo"] = true if ctxt.CgoEnabled { fileList = &p.CgoFiles importMap = importPos embedMap = embedPos directives = &p.Directives } else { // Ignore Imports and Embeds from cgo files if cgo is disabled.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 14:34:32 UTC 2024 - 29.7K bytes - Viewed (0) -
src/cmd/go/internal/list/list.go
GOARCH string // target architecture GOOS string // target operating system GOROOT string // Go root GOPATH string // Go path CgoEnabled bool // whether cgo can be used UseAllFiles bool // use files regardless of //go:build lines, file names Compiler string // compiler to assume when computing target paths
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 16 16:56:39 UTC 2024 - 33.3K bytes - Viewed (0) -
src/cmd/go/testdata/script/autocgo.txt
[!cgo] skip [cross] skip # Assume we're on a system that can enable cgo normally. env CGO_ENABLED= go env CGO_ENABLED stdout 1 # Clearing CC and removing everything but Go from the PATH should usually # disable cgo: no C compiler anymore (unless the baked-in defaultCC is an # absolute path and exists. env CC= env PATH=$GOROOT/bin go env CGO_ENABLED [!abscc] stdout 0
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 17 02:01:30 UTC 2022 - 625 bytes - Viewed (0) -
misc/ios/README
all.bash on the iOS emulator: GOOS=ios GOARCH=amd64 CGO_ENABLED=1 CC_FOR_TARGET=$(pwd)/../misc/ios/clangwrap.sh ./all.bash If CC_FOR_TARGET is not set when the toolchain is built (make.bash or all.bash), CC can be set on the command line. For example, GOOS=ios GOARCH=amd64 CGO_ENABLED=1 CC=$(go env GOROOT)/misc/ios/clangwrap.sh go build
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Dec 29 21:49:26 UTC 2020 - 2.7K bytes - Viewed (0)