Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for _cgo_flags (0.12 sec)

  1. src/cmd/cgo/out.go

    	var gccgoInit strings.Builder
    
    	if !*gccgo {
    		for _, arg := range p.LdFlags {
    			fmt.Fprintf(fgo2, "//go:cgo_ldflag %q\n", arg)
    		}
    	} else {
    		fflg := creat(*objDir + "_cgo_flags")
    		for _, arg := range p.LdFlags {
    			fmt.Fprintf(fflg, "_CGO_LDFLAGS=%s\n", arg)
    		}
    		fflg.Close()
    	}
    
    	// Write C main file for using gcc to resolve imports.
    	fmt.Fprintf(fm, "#include <stddef.h>\n") // For size_t below.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 29 16:41:10 UTC 2024
    - 59.6K bytes
    - Viewed (0)
  2. src/go/build/build.go

    		}
    
    		switch verb {
    		case "CFLAGS":
    			di.CgoCFLAGS = append(di.CgoCFLAGS, args...)
    		case "CPPFLAGS":
    			di.CgoCPPFLAGS = append(di.CgoCPPFLAGS, args...)
    		case "CXXFLAGS":
    			di.CgoCXXFLAGS = append(di.CgoCXXFLAGS, args...)
    		case "FFLAGS":
    			di.CgoFFLAGS = append(di.CgoFFLAGS, args...)
    		case "LDFLAGS":
    			di.CgoLDFLAGS = append(di.CgoLDFLAGS, args...)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 62.3K bytes
    - Viewed (0)
  3. src/cmd/go/go_test.go

    	tg.run("env", "GCCGO")
    	tg.grepStdout(".", "GCCGO unexpectedly empty")
    
    	tg.run("env", "CGO_CFLAGS")
    	tg.grepStdout(".", "default CGO_CFLAGS unexpectedly empty")
    
    	tg.setenv("CGO_CFLAGS", "-foobar")
    	tg.run("env", "CGO_CFLAGS")
    	tg.grepStdout("^-foobar$", "CGO_CFLAGS not honored")
    
    	tg.setenv("CC", "gcc -fmust -fgo -ffaster")
    	tg.run("env", "CC")
    	tg.grepStdout("gcc", "CC not found")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 81.1K bytes
    - Viewed (0)
  4. src/cmd/dist/test.go

    			}
    		}
    
    	case os == "aix", os == "android", os == "dragonfly", os == "freebsd", os == "linux", os == "netbsd", os == "openbsd":
    		gt := cgoTest("external-g0", "test", "external", "")
    		gt.env = append(gt.env, "CGO_CFLAGS=-g0 -fdiagnostics-color")
    
    		cgoTest("external", "testtls", "external", "")
    		switch {
    		case os == "aix":
    			// no static linking
    		case p == "freebsd/arm":
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 16:01:35 UTC 2024
    - 50K bytes
    - Viewed (0)
  5. src/cmd/cgo/gcc.go

    		"int __cgo__1 = __cgo__2;\n")
    
    	// We need to parse the output from this gcc command, so ensure that it
    	// doesn't have any ANSI escape sequences in it. (TERM=dumb is
    	// insufficient; if the user specifies CGO_CFLAGS=-fdiagnostics-color,
    	// GCC will ignore TERM, and GCC can also be configured at compile-time
    	// to ignore TERM.)
    	stderr := p.gccErrors(b.Bytes(), "-fdiagnostics-color=never")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:50:06 UTC 2024
    - 97K bytes
    - Viewed (0)
Back to top