Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 66 for goGcflags (0.24 sec)

  1. src/cmd/cgo/internal/testerrors/errors_test.go

    	if err != nil {
    		t.Fatal(err)
    	}
    	defer os.RemoveAll(dir)
    
    	dst := filepath.Join(dir, strings.TrimSuffix(file, ".go"))
    	cmd := exec.Command("go", "build", "-gcflags=-L -e", "-o="+dst, path(file)) // TODO(gri) no need for -gcflags=-L if go tool is adjusted
    	out, err := cmd.CombinedOutput()
    	if err == nil {
    		t.Errorf("expected cgo to fail but it succeeded")
    	}
    
    	lines := bytes.Split(out, []byte("\n"))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:50:06 UTC 2024
    - 4K bytes
    - Viewed (0)
  2. src/make.rc

    # GOHOSTARCH=386 on an amd64 machine.
    #
    # GOARCH: The target architecture for installed packages and tools.
    #
    # GOOS: The target operating system for installed packages and tools.
    #
    # GO_GCFLAGS: Additional go tool compile arguments to use when
    # building the packages and commands.
    #
    # GO_LDFLAGS: Additional go tool link arguments to use when
    # building the commands.
    #
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 13:48:46 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  3. src/cmd/cgo/internal/testplugin/plugin_test.go

    	"internal/platform"
    	"internal/testenv"
    	"log"
    	"os"
    	"os/exec"
    	"path/filepath"
    	"runtime"
    	"strings"
    	"testing"
    	"time"
    )
    
    var globalSkip = func(t *testing.T) {}
    
    var gcflags string = os.Getenv("GO_GCFLAGS")
    var goroot string
    
    func TestMain(m *testing.M) {
    	flag.Parse()
    	log.SetFlags(log.Lshortfile)
    	os.Exit(testMain(m))
    }
    
    // tmpDir is used to cleanup logged commands -- s/tmpDir/$TMPDIR/
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:32:53 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  4. src/internal/testenv/testenv.go

    // and then run them with os.StartProcess or exec.Command.
    func HasGoBuild() bool {
    	if os.Getenv("GO_GCFLAGS") != "" {
    		// It's too much work to require every caller of the go command
    		// to pass along "-gcflags="+os.Getenv("GO_GCFLAGS").
    		// For now, if $GO_GCFLAGS is set, report that we simply can't
    		// run go build.
    		return false
    	}
    
    	goBuildOnce.Do(func() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 16:41:38 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  5. 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)
  6. src/make.bat

    :: CGO_ENABLED: Controls cgo usage...
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 22:16:54 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  7. 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)
  8. hack/make-rules/test.sh

    testargs=()
    eval "testargs=(${KUBE_TEST_ARGS:-})"
    
    # Used to filter verbose test output.
    go_test_grep_pattern=".*"
    
    goflags=()
    # The junit report tool needs full test case information to produce a
    # meaningful report.
    if [[ -n "${KUBE_JUNIT_REPORT_DIR}" ]] ; then
      goflags+=(-v)
      goflags+=(-json)
      # Show only summary lines by matching lines like "status package/test"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 02 22:40:10 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  9. src/cmd/go/testdata/script/build_runtime_gcflags.txt

    [short] skip # rebuilds all of std
    
    # Set up fresh GOCACHE.
    env GOCACHE=$WORK/gocache
    mkdir $GOCACHE
    
    # Verify the standard library (specifically internal/runtime/atomic) can be
    # built with -gcflags when -n is given. See golang.org/issue/29346.
    go build -n -gcflags=all='-l' std
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 00:18:30 UTC 2024
    - 349 bytes
    - Viewed (0)
  10. src/make.bash

    # GOHOSTARCH=386 on an amd64 machine.
    #
    # GOARCH: The target architecture for installed packages and tools.
    #
    # GOOS: The target operating system for installed packages and tools.
    #
    # GO_GCFLAGS: Additional go tool compile arguments to use when
    # building the packages and commands.
    #
    # GO_LDFLAGS: Additional go tool link arguments to use when
    # building the commands.
    #
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 13:48:46 UTC 2024
    - 7.6K bytes
    - Viewed (0)
Back to top