Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 285 for ldflag (0.17 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/link/internal/ld/go.go

    					nerrors++
    					return
    				}
    
    				interpreter = f[1]
    			}
    			continue
    
    		case "cgo_ldflag":
    			if len(f) != 2 {
    				break
    			}
    			ldflag = append(ldflag, f[1])
    			continue
    		}
    
    		fmt.Fprintf(os.Stderr, "%s: %s: invalid cgo directive: %q\n", os.Args[0], file, f)
    		nerrors++
    	}
    	return
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 22 16:48:30 UTC 2023
    - 11.2K bytes
    - Viewed (0)
  4. src/cmd/link/internal/ld/lib.go

    }
    
    var (
    	dynlib          []string
    	ldflag          []string
    	havedynamic     int
    	Funcalign       int
    	iscgo           bool
    	elfglobalsymndx int
    	interpreter     string
    
    	debug_s bool // backup old value of debug['s']
    	HEADR   int32
    
    	nerrors  int
    	liveness int64 // size of liveness data (funcdata), printed if -v
    
    	// See -strictdups command line flag.
    	checkStrictDups   int // 0=off 1=warning 2=error
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 18:45:27 UTC 2024
    - 88.6K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top