Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 165 for goGcflags (0.12 sec)

  1. 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)
  2. src/cmd/go/testdata/script/cgo_bad_directives.txt

    stderr 'invalid flag in #cgo CFLAGS: -D @foo'
    
    # Reject #cgo CFLAGS -D@foo
    cp y_cflags_dash_d_at_foo.txt y.go
    ! go build x
    stderr 'invalid flag in #cgo CFLAGS: -D@foo'
    
    # Check for CFLAGS in commands
    env CGO_CFLAGS=-D@foo
    cp y_no_cflags.txt y.go
    go build -n x
    stderr '-D@foo'
    
    -- go.mod --
    module x
    
    go 1.16
    -- x_gc.go.txt --
    package x
    
    //go:cgo_ldflag "-fplugin=foo.so"
    
    import "C"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 21:26:10 UTC 2022
    - 2.8K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/test/global_test.go

    	}
    	f.Write([]byte(`
    package main
    import "fmt"
    func main() {
    	fmt.Println("hello world")
    }
    `))
    	f.Close()
    
    	// Compile source.
    	cmd := testenv.Command(t, testenv.GoToolPath(t), "build", "-gcflags", "-S", "-o", filepath.Join(dir, "test"), src)
    	out, err := cmd.CombinedOutput()
    	if err != nil {
    		t.Fatalf("could not build target: %v\n%s", err, out)
    	}
    
    	patterns := []string{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 06 18:07:35 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  4. src/cmd/go/testdata/script/mod_vendor.txt

    # the same behavior should be exhibited both on the module root directory, as well as nested subdirectories
    
    go mod vendor -v -o ''
    exists vendor/modules.txt
    
    env GOFLAGS=-o=foo
    go mod vendor -v -o ''
    exists vendor/modules.txt
    env GOFLAGS=''
    
    mkdir -p nested/dir
    cd nested/dir
    go mod vendor -v -o ''
    ! exists vendor/
    exists ../../vendor/modules.txt
    cd ../..
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 15 16:24:01 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. src/cmd/go/testdata/script/mod_test.txt

    env GO111MODULE=on
    env GOFLAGS=-mod=mod
    [short] skip
    
    # TODO(bcmills): Convert the 'go test' calls below to 'go list -test' once 'go
    # list' is more sensitive to package loading errors.
    
    # A test in the module's root package should work.
    cd a/
    cp go.mod.empty go.mod
    go list -test
    ! stderr error
    
    cp go.mod.empty go.mod
    go list -deps
    ! stdout ^testing$
    
    # list all should include test dependencies, like testing
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 17 21:24:05 UTC 2021
    - 2.2K bytes
    - Viewed (0)
  9. 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)
  10. src/cmd/go/testdata/script/mod_replace_gopkgin.txt

    	# TODO(#54043): Make this test hermetic and re-enable it.
    
    [!net:gopkg.in] skip
    [!git] skip
    
    env GO111MODULE=on
    env GOPROXY=direct
    env GOSUMDB=off
    env GOFLAGS=-mod=mod
    
    # Replacing gopkg.in/[…].vN with a repository with a root go.mod file
    # specifying […].vN and a compatible version should succeed, even if
    # the replacement path is not a gopkg.in path.
    cd 4-to-4
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 24 15:54:04 UTC 2023
    - 2.6K bytes
    - Viewed (0)
Back to top