Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 66 for goGcflags (0.14 sec)

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

    	if symabis != "" {
    		defaultGcFlags = append(defaultGcFlags, "-symabis", symabis)
    	}
    
    	gcflags := str.StringList(forcedGcflags, p.Internal.Gcflags)
    	if p.Internal.FuzzInstrument {
    		gcflags = append(gcflags, fuzzInstrumentFlags()...)
    	}
    	// Add -c=N to use concurrent backend compilation, if possible.
    	if c := gcBackendConcurrency(gcflags); c > 1 {
    		defaultGcFlags = append(defaultGcFlags, fmt.Sprintf("-c=%d", c))
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 15:37:44 UTC 2024
    - 23K bytes
    - Viewed (0)
  2. doc/next/5-toolchain.md

    a cost of an additional 0.1% text and binary size.  This is currently only implemented
    on 386 and amd64 because it has not shown an improvement on other platforms.
    Hot block alignment can be disabled with `-gcflags=[<packages>=]-d=alignhot=0`
    
    ## Assembler {#assembler}
    
    ## Linker {#linker}
    
    <!-- go.dev/issue/67401, CL 585556, CL 587220, and many more -->
    The linker now disallows using a `//go:linkname` directive to refer to
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 17:18:10 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  3. 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)
  4. hack/update-vendor.sh

    kube::golang::setup_env
    
    # Turn off workspaces until we are ready for them later
    export GOWORK=off
    # Explicitly opt into go modules
    export GO111MODULE=on
    # Explicitly set GOFLAGS to ignore vendor, since GOFLAGS=-mod=vendor breaks dependency resolution while rebuilding vendor
    export GOFLAGS=-mod=mod
    # Ensure sort order doesn't depend on locale
    export LANG=C
    export LC_ALL=C
    # Detect problematic GOPROXY settings that prevent lookup of dependencies
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:07:08 UTC 2024
    - 15.6K bytes
    - Viewed (0)
  5. src/cmd/cgo/internal/swig/swig_test.go

    		if strings.Contains(testenv.Builder(), "clang") {
    			extraLDFlags += " -fuse-ld=lld"
    		}
    		const cflags = "-flto -Wno-lto-type-mismatch -Wno-unknown-warning-option"
    		cmd.Env = append(cmd.Environ(),
    			"CGO_CFLAGS="+cflags,
    			"CGO_CXXFLAGS="+cflags,
    			"CGO_LDFLAGS="+cflags+extraLDFlags)
    	}
    	out, err := cmd.CombinedOutput()
    	if string(out) != "OK\n" {
    		t.Errorf("%s", string(out))
    	}
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 12:38:14 UTC 2024
    - 4K bytes
    - Viewed (0)
  6. src/cmd/link/link_test.go

    	cmd := testenv.Command(t, testenv.GoToolPath(t), "build", "-buildmode=c-archive", "-o", ar, lib)
    	env := []string{
    		"CGO_ENABLED=1",
    		"GOOS=ios",
    		"GOARCH=arm64",
    		"CC=" + strings.Join(CC, " "),
    		"CGO_CFLAGS=", // ensure CGO_CFLAGS does not contain any flags. Issue #35459
    		"CGO_LDFLAGS=" + strings.Join(CGO_LDFLAGS, " "),
    	}
    	cmd.Env = append(os.Environ(), env...)
    	t.Logf("%q %v", env, cmd)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 20:26:02 UTC 2024
    - 43.5K bytes
    - Viewed (0)
  7. src/cmd/asm/main.go

    	default:
    		log.Printf("unknown setting -spectre=%s", *flags.Spectre)
    		os.Exit(2)
    	case "":
    		// nothing
    	case "index":
    		// known to compiler; ignore here so people can use
    		// the same list with -gcflags=-spectre=LIST and -asmflags=-spectrre=LIST
    	case "all", "ret":
    		ctxt.Retpoline = true
    	}
    
    	ctxt.Bso = bufio.NewWriter(os.Stdout)
    	defer ctxt.Bso.Flush()
    
    	architecture.Init(ctxt)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  8. src/cmd/go/internal/work/exec.go

    			return nil, nil, err
    		}
    		outObj = append(outObj, tokenFile)
    	}
    
    	if cfg.BuildMSan {
    		cgoCFLAGS = append([]string{"-fsanitize=memory"}, cgoCFLAGS...)
    		cgoLDFLAGS = append([]string{"-fsanitize=memory"}, cgoLDFLAGS...)
    	}
    	if cfg.BuildASan {
    		cgoCFLAGS = append([]string{"-fsanitize=address"}, cgoCFLAGS...)
    		cgoLDFLAGS = append([]string{"-fsanitize=address"}, cgoLDFLAGS...)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 14:46:37 UTC 2024
    - 105.6K bytes
    - Viewed (0)
  9. src/cmd/go/testdata/script/env_write.txt

    env GOENV=$WORK/envdir/go/env
    go env GOENV
    stdout envdir[\\/]go[\\/]env
    
    # go env shows all variables
    go env
    stdout GOARCH=
    stdout GOOS=
    stdout GOROOT=
    
    # go env ignores invalid flag in GOFLAGS environment variable
    env GOFLAGS='=true'
    go env
    
    # checking errors
    ! go env -w
    stderr 'go: no KEY=VALUE arguments given'
    ! go env -u
    stderr 'go: ''go env -u'' requires an argument'
    
    # go env -w changes default setting
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 18:42:31 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  10. src/cmd/go/testdata/script/build_trimpath_goroot.txt

    ! go test -trimpath -v .
    stdout '^GOROOT $'
    stdout 'cannot find package "runtime" in any of:\n\t\(\$GOROOT not set\)\n\t'$WORK${/}gopath${/}src${/}runtime' \(from \$GOPATH\)$'
    
    env GOFLAGS=-trimpath
    go generate .
    stdout '^GOROOT '$TESTGO_GOROOT'$'
    stdout '^runtime '$TESTGO_GOROOT${/}src${/}runtime'$'
    
    -- go.mod --
    module example
    
    go 1.19
    -- main.go --
    package main
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 22:16:54 UTC 2024
    - 2.8K bytes
    - Viewed (0)
Back to top