Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for ldflag (0.2 sec)

  1. 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)
  2. src/cmd/dist/test.go

    			gt.buildmode = ""
    			if linkmode == "external" {
    				ldflags = append(ldflags, `-extldflags "-static -pthread"`)
    			} else if linkmode == "auto" {
    				gt.env = append(gt.env, "CGO_LDFLAGS=-static -pthread")
    			} else {
    				panic("unknown linkmode with static build: " + linkmode)
    			}
    			gt.tags = append(gt.tags, "static")
    		}
    		gt.ldflags = strings.Join(ldflags, " ")
    
    		t.registerTest(heading, gt, opts...)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 16:01:35 UTC 2024
    - 50K bytes
    - Viewed (0)
  3. src/cmd/dist/build.go

    	var debug, distpack, force, noBanner, noClean bool
    	flag.BoolVar(&rebuildall, "a", rebuildall, "rebuild all")
    	flag.BoolVar(&debug, "d", debug, "enable debugging of bootstrap process")
    	flag.BoolVar(&distpack, "distpack", distpack, "write distribution files to pkg/distpack")
    	flag.BoolVar(&force, "force", force, "build even if the port is marked as broken")
    	flag.BoolVar(&noBanner, "no-banner", noBanner, "do not print banner")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 18:34:40 UTC 2024
    - 54K bytes
    - Viewed (0)
  4. src/cmd/internal/testdir/testdir_test.go

    			for i := 0; i < len(flags); i++ {
    				flag := flags[i]
    				switch {
    				case strings.HasPrefix(flag, "-gcflags="):
    					cmdline[2] += " " + strings.TrimPrefix(flag, "-gcflags=")
    				case strings.HasPrefix(flag, "--gcflags="):
    					cmdline[2] += " " + strings.TrimPrefix(flag, "--gcflags=")
    				case flag == "-gcflags", flag == "--gcflags":
    					i++
    					if i < len(flags) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 20:08:06 UTC 2024
    - 57.5K bytes
    - Viewed (0)
  5. cmd/kubelet/app/server.go

    	return fs
    }
    
    // newFakeFlagSet constructs a pflag.FlagSet with the same flags as fs, but where
    // all values have noop Set implementations
    func newFakeFlagSet(fs *pflag.FlagSet) *pflag.FlagSet {
    	ret := pflag.NewFlagSet("", pflag.ExitOnError)
    	ret.SetNormalizeFunc(fs.GetNormalizeFunc())
    	fs.VisitAll(func(f *pflag.Flag) {
    		ret.VarP(cliflag.NoOp{}, f.Name, f.Shorthand, f.Usage)
    	})
    	return ret
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 00:05:34 UTC 2024
    - 53.9K bytes
    - Viewed (0)
  6. src/cmd/go/go_test.go

    	skipIfGccgo(t, "gccgo does not support -ldflags -X")
    	tooSlow(t, "compiles and links a binary")
    
    	tg := testgo(t)
    	defer tg.cleanup()
    	tg.parallel()
    	tg.tempFile("main.go", `package main
    		var extern string
    		func main() {
    			println(extern)
    		}`)
    	tg.run("run", "-ldflags", `-X "main.extern=hello world"`, tg.path("main.go"))
    	tg.grepStderr("^hello world", `ldflags -X "main.extern=hello world"' failed`)
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 81.1K bytes
    - Viewed (0)
  7. src/cmd/go/internal/modget/get.go

    	}
    	return nil
    }
    
    func (v *upgradeFlag) String() string { return "" }
    
    // dFlag is a custom flag.Value for the deprecated -d flag
    // which will be used to provide warnings or errors if -d
    // is provided.
    type dFlag struct {
    	value bool
    	set   bool
    }
    
    func (v *dFlag) IsBoolFlag() bool { return true }
    
    func (v *dFlag) Set(s string) error {
    	v.set = true
    	value, err := strconv.ParseBool(s)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 18:26:32 UTC 2024
    - 66.5K bytes
    - Viewed (0)
  8. src/go/build/build.go

    // These lines set CFLAGS, CPPFLAGS, CXXFLAGS and LDFLAGS and pkg-config directives
    // that affect the way cgo's C code is built.
    func (ctxt *Context) saveCgo(filename string, di *Package, cg *ast.CommentGroup) error {
    	text := cg.Text()
    	for _, line := range strings.Split(text, "\n") {
    		orig := line
    
    		// Line is
    		//	#cgo [GOOS/GOARCH...] LDFLAGS: stuff
    		//
    		line = strings.TrimSpace(line)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 62.3K bytes
    - Viewed (0)
  9. src/cmd/cgo/gcc.go

    		for _, arg := range args {
    			if !strings.HasPrefix(arg, "-g") {
    				p.GccOptions = append(p.GccOptions, arg)
    			}
    		}
    	}
    	if flag == "LDFLAGS" {
    		p.LdFlags = append(p.LdFlags, args...)
    	}
    }
    
    // splitQuoted splits the string s around each instance of one or more consecutive
    // white space characters while taking into account quotes and escaping, and
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:50:06 UTC 2024
    - 97K bytes
    - Viewed (0)
  10. src/cmd/go/internal/modload/load.go

    		fmt.Fprintln(os.Stderr)
    
    		goFlag := ""
    		if goVersion != MainModules.GoVersion() {
    			goFlag = " -go=" + goVersion
    		}
    
    		compatFlag := ""
    		if compatVersion != gover.Prev(goVersion) {
    			compatFlag = " -compat=" + compatVersion
    		}
    		if suggestUpgrade {
    			eDesc := ""
    			eFlag := ""
    			if suggestEFlag {
    				eDesc = ", leaving some packages unresolved"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 14:56:56 UTC 2024
    - 84K bytes
    - Viewed (0)
Back to top