Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 22 for _cgo_flags (0.16 sec)

  1. src/cmd/go/internal/work/gccgo.go

    		}
    		if cfg.BuildN || cfg.BuildX {
    			sh.ShowCmd("", "ar d %s _cgo_flags", newArchive)
    			if cfg.BuildN {
    				// TODO(rsc): We could do better about showing the right _cgo_flags even in -n mode.
    				// Either the archive is already built and we can read them out,
    				// or we're printing commands to build the archive and can
    				// forward the _cgo_flags directly to this step.
    				return "", nil
    			}
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 02 22:18:34 UTC 2024
    - 19K bytes
    - Viewed (0)
  2. src/cmd/go/internal/work/exec.go

    			cgoCFLAGS = append(cgoCFLAGS, "-fsplit-stack")
    		}
    		cgoflags = append(cgoflags, "-gccgo")
    		if pkgpath := gccgoPkgpath(p); pkgpath != "" {
    			cgoflags = append(cgoflags, "-gccgopkgpath="+pkgpath)
    		}
    		if !BuildToolchain.(gccgoToolchain).supportsCgoIncomplete(b, a) {
    			cgoflags = append(cgoflags, "-gccgo_define_cgoincomplete")
    		}
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 14:46:37 UTC 2024
    - 105.6K bytes
    - Viewed (0)
  3. src/cmd/cgo/doc.go

    '.', that will not be interpreted in unexpected ways. Attempts to use
    forbidden characters will get a "malformed #cgo argument" error.
    
    When building, the CGO_CFLAGS, CGO_CPPFLAGS, CGO_CXXFLAGS, CGO_FFLAGS and
    CGO_LDFLAGS environment variables are added to the flags derived from
    these directives. Package-specific flags should be set using the
    directives, not the environment variables, so that builds work in
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 17:12:16 UTC 2024
    - 42.2K bytes
    - Viewed (0)
  4. 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)
  5. src/internal/cfg/cfg.go

    // of the Go command.
    const KnownEnv = `
    	AR
    	CC
    	CGO_CFLAGS
    	CGO_CFLAGS_ALLOW
    	CGO_CFLAGS_DISALLOW
    	CGO_CPPFLAGS
    	CGO_CPPFLAGS_ALLOW
    	CGO_CPPFLAGS_DISALLOW
    	CGO_CXXFLAGS
    	CGO_CXXFLAGS_ALLOW
    	CGO_CXXFLAGS_DISALLOW
    	CGO_ENABLED
    	CGO_FFLAGS
    	CGO_FFLAGS_ALLOW
    	CGO_FFLAGS_DISALLOW
    	CGO_LDFLAGS
    	CGO_LDFLAGS_ALLOW
    	CGO_LDFLAGS_DISALLOW
    	CXX
    	FC
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 06 01:33:19 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  6. src/cmd/go/internal/envcmd/env.go

    		}
    		return q
    	}
    
    	ret := []cfg.EnvVar{
    		// Note: Update the switch in runEnv below when adding to this list.
    		{Name: "CGO_CFLAGS", Value: join(cflags)},
    		{Name: "CGO_CPPFLAGS", Value: join(cppflags)},
    		{Name: "CGO_CXXFLAGS", Value: join(cxxflags)},
    		{Name: "CGO_FFLAGS", Value: join(fflags)},
    		{Name: "CGO_LDFLAGS", Value: join(ldflags)},
    		{Name: "PKG_CONFIG", Value: b.PkgconfigCmd()},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 17:13:51 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  7. src/cmd/go/testdata/script/env_changed.txt

    env GOSUMDB=nodefault
    env GOPROXY=nodefault
    env GO111MODULE=auto
    env CGO_CFLAGS=nodefault
    env CGO_CPPFLAGS=nodefault
    
    go env -changed
    # linux output like GOTOOLCHAIN='local'
    # windows output like GOTOOLCHAIN=local
    stdout 'GOTOOLCHAIN=''?local''?'
    stdout 'GOSUMDB=''?nodefault''?'
    stdout 'GOPROXY=''?nodefault''?'
    stdout 'GO111MODULE=''?auto''?'
    stdout 'CGO_CFLAGS=''?nodefault''?'
    stdout 'CGO_CPPFLAGS=''?nodefault''?'
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 18:49:03 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  8. src/cmd/go/testdata/script/cgo_stale_precompiled.txt

    # Explicitly rebuild it to ensure that it is cached.
    # (See https://go.dev/issue/50892.)
    #
    # If running in non-short mode, explicitly vary CGO_CFLAGS
    # as a control case (to ensure that our regexps do catch rebuilds).
    
    [!short] env GOCACHE=$WORK/cache
    [!short] env CGO_CFLAGS=-DTestScript_cgo_stale_precompiled=true
    go build -x runtime/cgo
    [!short] stderr '[/\\]cgo'$GOEXE'["]? .* -importpath runtime/cgo'
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 22:16:54 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  9. src/cmd/go/internal/help/helpdoc.go

    		Does not apply to the CGO_CFLAGS environment variable.
    	CGO_CPPFLAGS, CGO_CPPFLAGS_ALLOW, CGO_CPPFLAGS_DISALLOW
    		Like CGO_CFLAGS, CGO_CFLAGS_ALLOW, and CGO_CFLAGS_DISALLOW,
    		but for the C preprocessor.
    	CGO_CXXFLAGS, CGO_CXXFLAGS_ALLOW, CGO_CXXFLAGS_DISALLOW
    		Like CGO_CFLAGS, CGO_CFLAGS_ALLOW, and CGO_CFLAGS_DISALLOW,
    		but for the C++ compiler.
    	CGO_FFLAGS, CGO_FFLAGS_ALLOW, CGO_FFLAGS_DISALLOW
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 16:54:28 UTC 2024
    - 36.3K bytes
    - Viewed (0)
  10. src/runtime/cgo/libcgo.h

     */
    struct cgoTracebackArg {
    	uintptr_t  Context;
    	uintptr_t  SigContext;
    	uintptr_t* Buf;
    	uintptr_t  Max;
    };
    
    /*
     * TSAN support.  This is only useful when building with
     *   CGO_CFLAGS="-fsanitize=thread" CGO_LDFLAGS="-fsanitize=thread" go install
     */
    #undef CGO_TSAN
    #if defined(__has_feature)
    # if __has_feature(thread_sanitizer)
    #  define CGO_TSAN
    # endif
    #elif defined(__SANITIZE_THREAD__)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 13 20:50:04 UTC 2024
    - 3.5K bytes
    - Viewed (0)
Back to top