- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 785 for CGO (0.07 sec)
-
src/cmd/go/testdata/script/darwin_lto_library_ldflag.txt
[!GOOS:darwin] skip [!cgo] skip ! go build stderr 'invalid flag in #cgo LDFLAGS: -lto_library' -- go.mod -- module ldflag -- main.go -- package main // #cgo CFLAGS: -flto // #cgo LDFLAGS: -lto_library bad.dylib import "C"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 15:41:16 UTC 2024 - 241 bytes - Viewed (0) -
src/cmd/go/testdata/script/build_static.txt
# This test requires external linking. Assume that if cgo is supported # then external linking works. [!cgo] skip 'requires a C linker' # Only run on Unix systems. [GOOS:windows] skip [GOOS:plan9] skip # Ordinary build should work. go build exec ./hello stdout Hello # Building with -linkmode=external should not say anything about # runtime/cgo (issue #31544). go build -ldflags=-linkmode=external
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 20 22:03:35 UTC 2023 - 926 bytes - Viewed (0) -
src/syscall/mkall.sh
mksyscall="./mksyscall_libc.pl -aix" mktypes="GOARCH=$GOARCH go tool cgo -godefs" ;; darwin_amd64) mkerrors="$mkerrors -m64" mksyscall="./mksyscall.pl -darwin" mktypes="GOARCH=$GOARCH go tool cgo -godefs" mkasm="go run mkasm.go" ;; darwin_arm64) mkerrors="$mkerrors -m64" mksyscall="./mksyscall.pl -darwin" mktypes="GOARCH=$GOARCH go tool cgo -godefs" mkasm="go run mkasm.go" ;; dragonfly_amd64)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Nov 06 18:22:23 UTC 2023 - 14.6K bytes - Viewed (0) -
src/cmd/go/testdata/script/list_pkgconfig_error.txt
[!cgo] skip 'test verifies cgo pkg-config errors' [!exec:pkg-config] skip 'test requires pkg-config tool' ! go list -export . stderr '^# example\n# \[pkg-config .*\]\n(.*\n)*Package .* not found' -- go.mod -- module example go 1.20 -- example.go -- package example // #cgo pkg-config: libnot-a-valid-cgo-library import "C"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 12:23:49 UTC 2023 - 345 bytes - Viewed (0) -
src/runtime/cgo_mmap.go
// Support for memory sanitizer. See runtime/cgo/mmap.go. //go:build (linux && (amd64 || arm64 || loong64)) || (freebsd && amd64) package runtime import "unsafe" // _cgo_mmap is filled in by runtime/cgo when it is linked into the // program, so it is only non-nil when using cgo. // //go:linkname _cgo_mmap _cgo_mmap var _cgo_mmap unsafe.Pointer // _cgo_munmap is filled in by runtime/cgo when it is linked into the
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Aug 25 20:58:13 UTC 2023 - 2.4K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/cgocall/cgocall.go
"golang.org/x/tools/go/ast/astutil" ) const debug = false const Doc = `detect some violations of the cgo pointer passing rules Check for invalid cgo pointer passing. This looks for code that uses cgo to call C code passing values whose types are almost always invalid according to the cgo pointer sharing rules. Specifically, it warns about attempts to pass a Go chan, map, func,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:33 UTC 2023 - 11.2K bytes - Viewed (0) -
src/cmd/cgo/doc.go
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" implies the "cgo" build constraint, as though the file also said "//go:build cgo". Therefore, if cgo is disabled, files that import "C" will not be built by the go tool. (For more about build constraints
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 13 17:12:16 UTC 2024 - 42.2K bytes - Viewed (0) -
src/cmd/cgo/internal/test/issue23555.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build cgo // Test that we can have two identical cgo packages in a single binary. // No runtime test; just make sure it compiles. package cgotest import ( _ "cmd/cgo/internal/test/issue23555a" _ "cmd/cgo/internal/test/issue23555b"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 12:00:02 UTC 2023 - 403 bytes - Viewed (0) -
src/cmd/go/testdata/script/gccgo_link_c.txt
# Issue #7573 # cmd/cgo: undefined reference when linking a C-library using gccgo [!cgo] skip [!exec:gccgo] skip [cross] skip # gccgo can't necessarily cross-compile, so don't assume it will reach the step where we expect it to fail ! go build -x -compiler gccgo stderr 'gccgo.*\-L [^ ]*alibpath \-lalib' # make sure that Go-inline "#cgo LDFLAGS:" ("-L alibpath -lalib") passed to gccgo linking stage
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Aug 16 16:38:51 UTC 2023 - 617 bytes - Viewed (0) -
src/cmd/cgo/internal/test/issue9510.go
// license that can be found in the LICENSE file. //go:build cgo && !((ppc64 || ppc64le) && internal) // Test that we can link together two different cgo packages that both // use the same libgcc function. package cgotest import ( "runtime" "testing" "cmd/cgo/internal/test/issue9510a" "cmd/cgo/internal/test/issue9510b" ) func test9510(t *testing.T) { if runtime.GOARCH == "arm" {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 20 15:35:35 UTC 2024 - 606 bytes - Viewed (0)