Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 265 for gcflags (0.12 sec)

  1. src/cmd/go/testdata/script/gcflags_patterns.txt

    [!compiler:gc] skip 'using -gcflags and -ldflags'
    [short] skip
    
    # -gcflags=-e applies to named packages, not dependencies
    go build -a -n -v -gcflags=-e z1 z2
    stderr 'compile.* -p z1.* -e '
    stderr 'compile.* -p z2.* -e '
    stderr 'compile.* -p y'
    ! stderr 'compile.* -p [^z].* -e '
    
    # -gcflags can specify package=flags, and can be repeated; last match wins
    go build -a -n -v -gcflags=-e -gcflags=z1=-N z1 z2
    stderr 'compile.* -p z1.* -N '
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 21 14:58:44 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  2. src/cmd/go/testdata/script/build_cache_output.txt

    go build -x -gcflags=-m -ldflags='-v -w' main.go
    ! stderr 'compile( |\.exe"?)'
    stderr 'main.go:2.* can inline main' # from compiler
    ! stderr 'link(\.exe"?)? -'
    stderr '\d+ symbols' # from linker
    
    # Running a test should run the compiler, linker, and the test the first time.
    go test -v -x -gcflags=-m -ldflags=-v p
    stderr 'compile( |\.exe"?)'
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 21:26:10 UTC 2022
    - 2K bytes
    - Viewed (0)
  3. common/scripts/gobuild.sh

    fi
    
    time GOOS=${BUILD_GOOS} GOARCH=${BUILD_GOARCH} ${GOBINARY} build \
            ${V} "${GOBUILDFLAGS_ARRAY[@]}" ${GCFLAGS:+-gcflags "${GCFLAGS}"} \
            -o "${OUT}" \
            "${OPTIMIZATION_FLAGS[@]}" \
            -pkgdir="${GOPKG}/${BUILD_GOOS}_${BUILD_GOARCH}" \
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Oct 21 14:08:46 UTC 2022
    - 2.4K bytes
    - Viewed (0)
  4. src/cmd/go/testdata/script/build_gcflags_order.txt

    # Tests golang.org/issue/47682
    # Flags specified with -gcflags should appear after other flags generated by cmd/go.
    
    cd m
    go build -n -gcflags=-lang=go1.17
    stderr ' -lang=go1.16.* -lang=go1.17'
    ! go build -gcflags='-c 0'
    stderr 'compile: -c must be at least 1, got 0'
    
    -- m/go.mod --
    module example.com
    
    go 1.16
    
    -- m/main.go --
    package main
    
    func main() {
        var s = []int{1, 2, 3}
        var pa = (*[2]int)(s[1:])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 07 22:22:37 UTC 2023
    - 435 bytes
    - Viewed (0)
  5. src/cmd/go/testdata/script/list_compiler_output.txt

    [short] skip
    
    go install -gcflags=-m .
    stderr 'can inline main'
    go list -gcflags=-m -f '{{.Stale}}' .
    stdout 'false'
    ! stderr 'can inline main'
    
    -- go.mod --
    module example.com/foo
    
    go 1.20
    -- main.go --
    package main
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 21 19:37:23 UTC 2022
    - 233 bytes
    - Viewed (0)
  6. 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)
  7. src/cmd/go/testdata/script/build_gcflags.txt

    env GO111MODULE=off
    
    # Test that the user can override default code generation flags.
    
    [compiler:gccgo] skip  # gccgo does not use -gcflags
    [!cgo] skip
    [!GOOS:linux] skip  # test only works if c-archive implies -shared
    [short] skip
    
    env GOCACHE=$WORK/gocache  # Looking for compile commands, so need a clean cache.
    go build -x -n -buildmode=c-archive -gcflags=all=-shared=false ./override.go
    stderr '^.*/compile (.* )?-shared (.* )?-shared=false'
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 21:26:10 UTC 2022
    - 541 bytes
    - Viewed (0)
  8. src/cmd/go/testdata/script/version_build_settings.txt

    [GOARCH:amd64] stdout '^\tbuild\tGOAMD64='
    ! stdout asmflags|gcflags|ldflags|gccgoflags
    
    # Toolchain flags are added if present.
    # The raw flags are included, with package patterns if specified.
    go build -asmflags=example.com/m=-D=FOO=bar
    go version -m m$GOEXE
    stdout '^\tbuild\t-asmflags=example\.com/m=-D=FOO=bar$'
    
    go build -gcflags=example.com/m=-N
    go version -m m$GOEXE
    stdout '^\tbuild\t-gcflags=example\.com/m=-N$'
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 21:26:10 UTC 2022
    - 2.7K bytes
    - Viewed (0)
  9. src/cmp.bash

    	echo $pkg
    	DIR=$GOROOT/src/$pkg
    	go build -gcflags "$FLAGS1 -S" -o /dev/null $pkg &> $DIR/old.txt
    done
    
    echo
    echo
    echo "2a) clean build using $FLAGS2"
    (export GO_GCFLAGS="$FLAGS2"; sh make.bash)
    
    echo
    echo
    echo "2b) save go build output for all packages"
    for pkg in `go list std`; do
    	echo $pkg
    	DIR=$GOROOT/src/$pkg
    	go build -gcflags "$FLAGS2 -S" -o /dev/null $pkg &> $DIR/new.txt
    done
    
    echo
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 20 18:03:31 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  10. test/fixedbugs/issue10958.go

    // buildrun -t 10  -gcflags=-d=ssa/insert_resched_checks/on,ssa/check/on
    
    //go:build !nacl && !js && disabled_see_issue_18589
    
    // Copyright 2016 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Test is disabled because it flakes when run in all.bash
    // on some platforms, but is useful standalone to verify
    // that rescheduling checks are working (and we may wish
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 1.9K bytes
    - Viewed (0)
Back to top