Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 165 for goGcflags (0.53 sec)

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

    # Recursive go commands started with 'go generate' should not get an explicitly
    # passed -modfile, but they should see arguments from GOFLAGS.
    cp go.alt.mod go.gen.mod
    env OLD_GOFLAGS=$GOFLAGS
    env GOFLAGS=-modfile=go.gen.mod
    go generate -modfile=go.alt.mod .
    env GOFLAGS=$OLD_GOFLAGS
    grep example.com/exclude go.gen.mod
    ! grep example.com/exclude go.alt.mod
    
    
    # The original files should not have been modified.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 21:18:16 UTC 2022
    - 2.6K bytes
    - Viewed (0)
  3. src/cmd/go/testdata/script/build_gcflags.txt

    # 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'
    
    -- override.go --
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 21:26:10 UTC 2022
    - 541 bytes
    - Viewed (0)
  4. src/cmd/go/testdata/script/issue36000.txt

    # Tests golang.org/issue/36000
    
    [!cgo] skip
    
    # go env with CGO flags should not make NUL file
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 20 21:52:17 UTC 2020
    - 112 bytes
    - Viewed (0)
  5. src/go/internal/srcimporter/srcimporter.go

    		}
    		args = append(args, strings.Fields(string(out))...)
    	}
    	args = append(args, "-I", tmpdir)
    	args = append(args, strings.Fields(os.Getenv("CGO_CFLAGS"))...)
    	args = append(args, bp.CgoCFLAGS...)
    	args = append(args, bp.CgoFiles...)
    
    	cmd := exec.Command(args[0], args[1:]...)
    	cmd.Dir = bp.Dir
    	if err := cmd.Run(); err != nil {
    		return nil, fmt.Errorf("go tool cgo: %w", err)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 23 18:54:32 UTC 2022
    - 8.2K bytes
    - Viewed (0)
  6. 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)
  7. src/cmd/go/testdata/script/test_flags.txt

    stderr '-test.outputdir=[^ ]'
    exists ./cover.out
    ! exists ./x/cover.out
    
    # Test flags from GOFLAGS should be forwarded to the test binary,
    # with the 'test.' prefix in the GOFLAGS entry...
    env GOFLAGS='-test.timeout=24h0m0s -count=1'
    go test -v -x ./x
    stdout 'timeout: 24h0m0s$'
    stderr '-test.count=1'
    
    # ...or without.
    env GOFLAGS='-timeout=24h0m0s -count=1'
    go test -v -x ./x
    stdout 'timeout: 24h0m0s$'
    stderr '-test.count=1'
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 06 17:53:14 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  8. src/cmd/go/testdata/script/mod_readonly.txt

    env GOFLAGS=-mod=readonly
    go mod edit -fmt
    cp go.mod go.mod.empty
    ! go list all
    stderr '^x.go:2:8: cannot find module providing package rsc\.io/quote: import lookup disabled by -mod=readonly'
    ! stderr '\(\)' # If we don't have a reason for -mod=readonly, don't log an empty one.
    cmp go.mod go.mod.empty
    
    # -mod=readonly should be set by default.
    env GOFLAGS=
    ! go list all
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 28 17:19:14 UTC 2021
    - 3.1K bytes
    - Viewed (0)
  9. src/cmd/go/internal/load/flag.go

    	// For backwards compatibility with earlier flag splitting, ignore spaces around flags.
    	v = strings.TrimSpace(v)
    	if v == "" {
    		// Special case: -gcflags="" means no flags for command-line arguments
    		// (overrides previous -gcflags="-whatever").
    		f.values = append(f.values, ppfValue{match, []string{}})
    		return nil
    	}
    	if !strings.HasPrefix(v, "-") {
    		i := strings.Index(v, "=")
    		if i < 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 19 20:20:43 UTC 2022
    - 2.6K bytes
    - Viewed (0)
  10. src/cmd/cgo/internal/testerrors/testdata/issue14669.go

    // 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.
    
    // Issue 14669: test that fails when build with CGO_CFLAGS selecting
    // optimization.
    
    package p
    
    /*
    const int E = 1;
    
    typedef struct s {
    	int       c;
    } s;
    */
    import "C"
    
    func F() {
    	_ = C.s{
    		c: C.E,
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 368 bytes
    - Viewed (0)
Back to top