- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for usesCgo (0.17 sec)
-
src/cmd/go/internal/work/gccgo.go
if p != nil { target := a.built if p.UsesCgo() || p.UsesSwig() { var err error target, err = readAndRemoveCgoFlags(target) if err != nil { continue } } afiles = append(afiles, target) } } for _, a := range allactions { if a.Package == nil { continue } if len(a.Package.CgoFiles) > 0 { usesCgo = true } if a.Package.UsesSwig() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 02 22:18:34 UTC 2024 - 19K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/typesinternal/types.go
"go/types" "reflect" "unsafe" ) func SetUsesCgo(conf *types.Config) bool { v := reflect.ValueOf(conf).Elem() f := v.FieldByName("go115UsesCgo") if !f.IsValid() { f = v.FieldByName("UsesCgo") if !f.IsValid() { return false } } addr := unsafe.Pointer(f.UnsafeAddr()) *(*bool)(addr) = true return true }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 1.4K bytes - Viewed (0) -
src/cmd/go/internal/load/pkg.go
// except for certain packages, to avoid circular dependencies. if p.UsesCgo() { addImport("unsafe", true) } if p.UsesCgo() && (!p.Standard || !cgoExclude[p.ImportPath]) && cfg.BuildContext.Compiler != "gccgo" { addImport("runtime/cgo", true) } if p.UsesCgo() && (!p.Standard || !cgoSyscallExclude[p.ImportPath]) { addImport("syscall", true) }
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/work/action.go
// and so a.Deps[0] is the corresponding build action. func (b *Builder) addInstallHeaderAction(a *Action) { // Install header for cgo in c-archive and c-shared modes. p := a.Package if p.UsesCgo() && (cfg.BuildBuildmode == "c-archive" || cfg.BuildBuildmode == "c-shared") { hdrTarget := a.Target[:len(a.Target)-len(filepath.Ext(a.Target))] + ".h" if cfg.BuildContext.Compiler == "gccgo" && cfg.BuildO == "" {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 18 15:39:17 UTC 2024 - 32.7K bytes - Viewed (0) -
src/cmd/go/internal/work/exec.go
// expect to be able to access the cgo-generated header file. func (b *Builder) needCgoHdr(a *Action) bool { // If this build triggers a header install, run cgo to get the header. if !b.IsCmdList && (a.Package.UsesCgo() || a.Package.UsesSwig()) && (cfg.BuildBuildmode == "c-archive" || cfg.BuildBuildmode == "c-shared") { for _, t1 := range a.triggers { if t1.Mode == "install header" { return true } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 10 14:46:37 UTC 2024 - 105.6K bytes - Viewed (0) -
src/math/erfc_s390x.s
TEXT ·erfcAsm(SB), NOSPLIT|NOFRAME, $0-16 MOVD x+0(FP), R1 MOVD $Neg2p11, R2 CMPUBGT R1, R2, usego FMOVD x+0(FP), F0 MOVD $·erfcrodataL38<>+0(SB), R9 FMOVD F0, F2 SRAD $48, R1 MOVH R1, R2 ANDW $0x7FFF, R1 MOVH $Pos15, R3 CMPW R1, R3 BGT usego MOVH $0x3FFF, R3 MOVW R1, R6 MOVW R3, R7 CMPBGT R6, R7, L2 MOVH $0x3FEF, R3 MOVW R3, R7
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 16 15:34:41 UTC 2019 - 14.4K bytes - Viewed (0) -
src/cmd/go/go_test.go
t.Run("cgo", func(t *testing.T) { testenv.MustHaveCGO(t) testBuildmodePIE(t, true, false) }) } func testBuildmodePIE(t *testing.T, useCgo, setBuildmodeToPIE bool) { tg := testgo(t) defer tg.cleanup() tg.parallel() var s string if useCgo { s = `import "C";` } tg.tempFile("main.go", fmt.Sprintf(`package main;%s func main() { print("hello") }`, s)) src := tg.path("main.go")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 81.1K bytes - Viewed (0)