Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 171 for ldflag (0.1 sec)

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

    stderr no-such-warning
    
    -- go.mod --
    module ldflag
    
    -- bad/bad.go --
    package bad
    
    // #cgo LDFLAGS: -Wno-such-warning -Wno-unknown-warning
    import "C"
    
    func F() {}
    -- ok/ok.go --
    package ok
    
    import "C"
    
    func F() {}
    -- main.go --
    package main
    
    import _ "ldflag/ok"
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Nov 14 14:11:56 UTC 2020
    - 762 bytes
    - Viewed (0)
  2. src/cmd/go/testdata/script/darwin_lto_library_ldflag.txt

    [!GOOS:darwin] skip
    [!cgo] skip
    
    ! go build
    stderr 'invalid flag in #cgo LDFLAGS: -lto_library'
    
    -- go.mod --
    module ldflag
    
    -- main.go --
    package main
    
    // #cgo CFLAGS: -flto
    // #cgo LDFLAGS: -lto_library bad.dylib
    import "C"
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 15:41:16 UTC 2024
    - 241 bytes
    - Viewed (0)
  3. src/cmd/go/internal/cmdflag/flag.go

    // license that can be found in the LICENSE file.
    
    // Package cmdflag handles flag processing common to several go tools.
    package cmdflag
    
    import (
    	"errors"
    	"flag"
    	"fmt"
    	"strings"
    )
    
    // The flag handling part of go commands such as test is large and distracting.
    // We can't use the standard flag package because some of the flags from
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 06 02:38:04 UTC 2022
    - 3.6K bytes
    - Viewed (0)
  4. src/cmd/go/internal/base/goflags.go

    type boolFlag interface {
    	flag.Value
    	IsBoolFlag() bool
    }
    
    // SetFromGOFLAGS sets the flags in the given flag set using settings in $GOFLAGS.
    func SetFromGOFLAGS(flags *flag.FlagSet) {
    	InitGOFLAGS()
    
    	// This loop is similar to flag.Parse except that it ignores
    	// unknown flags found in goflags, so that setting, say, GOFLAGS=-ldflags=-w
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 19 14:42:39 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  5. src/cmd/go/internal/load/flag.go

    	"fmt"
    	"strings"
    )
    
    var (
    	BuildAsmflags   PerPackageFlag // -asmflags
    	BuildGcflags    PerPackageFlag // -gcflags
    	BuildLdflags    PerPackageFlag // -ldflags
    	BuildGccgoflags PerPackageFlag // -gccgoflags
    )
    
    // A PerPackageFlag is a command-line flag implementation (a flag.Value)
    // that allows specifying different effective flags for different packages.
    // See 'go help build' for more details about per-package flags.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 19 20:20:43 UTC 2022
    - 2.6K bytes
    - Viewed (0)
  6. src/cmd/cgo/internal/testerrors/badsym_test.go

    			// This is the error from cgo.
    			continue
    		}
    
    		// We passed -ldflags=-v to see the external linker invocation,
    		// which should not include -badflag.
    		if bytes.Contains(line, []byte("-badflag")) {
    			t.Error("output should not mention -badflag")
    		}
    
    		// Also check for compiler errors, just in case.
    		// GCC says "unrecognized command line option".
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 19 01:37:31 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  7. pkg/log/klog.go

    	return gf.Value.String() != "0"
    }
    
    var (
    	klogFlagSet     = &goflag.FlagSet{}
    	klogFlagSetOnce = sync.Once{}
    )
    
    // KlogVerboseFlag returns verbose flag from the klog library.
    // After parsing it contains the parsed verbosity value.
    func klogVerboseFlag() *goflag.Flag {
    	klogFlagSetOnce.Do(func() {
    		klog.InitFlags(klogFlagSet)
    	})
    	// --v= flag of klog.
    	return klogFlagSet.Lookup("v")
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  8. buildscripts/gen-ldflags.go

    Harshavardhana <******@****.***> 1655421048 -0700
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 16 23:10:48 UTC 2022
    - 3.3K bytes
    - Viewed (0)
  9. src/cmd/cgo/internal/testso/testdata/so/cgoso.go

    /*
    // intentionally write the same LDFLAGS differently
    // to test correct handling of LDFLAGS.
    #cgo linux LDFLAGS: -L. -lcgosotest
    #cgo dragonfly LDFLAGS: -L. -l cgosotest
    #cgo freebsd LDFLAGS: -L. -l cgosotest
    #cgo openbsd LDFLAGS: -L. -l cgosotest
    #cgo solaris LDFLAGS: -L. -lcgosotest
    #cgo netbsd LDFLAGS: -L. libcgosotest.so
    #cgo darwin LDFLAGS: -L. libcgosotest.dylib
    #cgo windows LDFLAGS: -L. libcgosotest.a
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 19 01:37:41 UTC 2023
    - 761 bytes
    - Viewed (0)
  10. src/cmd/go/testdata/script/gcflags_patterns.txt

    # -ldflags applies to link of command
    go build -a -n -ldflags=-X=math.pi=3 my/cmd/prog
    stderr 'link.* -X=math.pi=3'
    
    # -ldflags applies to link of command even with strange directory name
    go build -a -n -ldflags=-X=math.pi=3 my/cmd/prog/
    stderr 'link.* -X=math.pi=3'
    
    # -ldflags applies to current directory
    cd my/cmd/prog
    go build -a -n -ldflags=-X=math.pi=3
    stderr 'link.* -X=math.pi=3'
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 21 14:58:44 UTC 2023
    - 2.5K bytes
    - Viewed (0)
Back to top