Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for CFLAGS (0.15 sec)

  1. src/cmd/cgo/internal/testsanitizers/cc_test.go

    		compiler, _ := compilerVersion()
    		if compiler.name == "gcc" {
    			c.cFlags = append(c.cFlags, "-fPIC")
    			c.ldFlags = append(c.ldFlags, "-fPIC", "-static-libtsan")
    		}
    
    	case "address":
    		c.goFlags = append(c.goFlags, "-asan")
    		// Set the debug mode to print the C stack trace.
    		c.cFlags = append(c.cFlags, "-g")
    
    	case "fuzzer":
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 09 20:00:56 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  2. src/cmd/go/internal/envcmd/env.go

    	defer func() {
    		if err := b.Close(); err != nil {
    			base.Fatal(err)
    		}
    	}()
    
    	cppflags, cflags, cxxflags, fflags, ldflags, err := b.CFlags(&load.Package{})
    	if err != nil {
    		// Should not happen - b.CFlags was given an empty package.
    		fmt.Fprintf(os.Stderr, "go: invalid cflags: %v\n", err)
    		return nil
    	}
    	cmd := b.GccCmd(".", "")
    
    	join := func(s []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)
  3. subprojects/core/src/test/groovy/org/gradle/api/internal/project/taskfactory/AnnotationProcessingTaskFactoryTest.groovy

            then:
            def e = thrown WorkValidationException
            validateException(task, e,
                missingValueMessage { property('cCompiler').includeLink() },
                missingValueMessage { property('CFlags').includeLink() },
                missingValueMessage { property('dns').includeLink() },
                missingValueMessage { property('URL').includeLink() })
        }
    
        def propertyValidationJavaBeanSpecSingleChar() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 20:42:35 UTC 2024
    - 38.8K bytes
    - Viewed (0)
  4. src/cmd/cgo/internal/test/test.go

       return c;
    }
    
    // issue 4857
    #cgo CFLAGS: -Werror
    const struct { int a; } *issue4857() { return (void *)0; }
    
    // issue 5224
    // Test that the #cgo CFLAGS directive works,
    // with and without platform filters.
    #cgo CFLAGS: -DCOMMON_VALUE=123
    #cgo windows CFLAGS: -DIS_WINDOWS=1
    #cgo !windows CFLAGS: -DIS_WINDOWS=0
    int common = COMMON_VALUE;
    int is_windows = IS_WINDOWS;
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:50:06 UTC 2024
    - 48.5K bytes
    - Viewed (0)
  5. src/cmd/cgo/doc.go

    effect to systems satisfying one of the constraints
    (see https://golang.org/pkg/go/build/#hdr-Build_Constraints for details about the constraint syntax).
    For example:
    
    	// #cgo CFLAGS: -DPNG_DEBUG=1
    	// #cgo amd64 386 CFLAGS: -DX86=1
    	// #cgo LDFLAGS: -lpng
    	// #include <png.h>
    	import "C"
    
    Alternatively, CPPFLAGS and LDFLAGS may be obtained via the pkg-config tool
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 17:12:16 UTC 2024
    - 42.2K bytes
    - Viewed (0)
  6. src/cmd/go/internal/help/helpdoc.go

    		C code.
    	CGO_CFLAGS_ALLOW
    		A regular expression specifying additional flags to allow
    		to appear in #cgo CFLAGS source code directives.
    		Does not apply to the CGO_CFLAGS environment variable.
    	CGO_CFLAGS_DISALLOW
    		A regular expression specifying flags that must be disallowed
    		from appearing in #cgo CFLAGS source code directives.
    		Does not apply to the CGO_CFLAGS environment variable.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 16:54:28 UTC 2024
    - 36.3K bytes
    - Viewed (0)
  7. src/cmd/link/link_test.go

    TEXT ·x(SB),0,$0
            CALL foo(SB)
            RET
    `)
    	write("x.c", `
    void undefined();
    
    void foo() {
            undefined();
    }
    `)
    
    	cc := strings.TrimSpace(runGo("env", "CC"))
    	cflags := strings.Fields(runGo("env", "GOGCCFLAGS"))
    
    	importcfgfile := filepath.Join(tmpdir, "importcfg")
    	testenv.WriteImportcfg(t, importcfgfile, nil, "runtime")
    
    	// Compile, assemble and pack the Go and C code.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 20:26:02 UTC 2024
    - 43.5K bytes
    - Viewed (0)
Back to top