Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 23 for Ldflags (0.42 sec)

  1. src/cmd/dist/test.go

    	}
    	if opts.cpu != "" {
    		run = append(run, "-cpu="+opts.cpu)
    	}
    	if t.json {
    		run = append(run, "-json")
    	}
    
    	if opts.gcflags != "" {
    		build = append(build, "-gcflags=all="+opts.gcflags)
    	}
    	if opts.ldflags != "" {
    		build = append(build, "-ldflags="+opts.ldflags)
    	}
    	if opts.buildmode != "" {
    		build = append(build, "-buildmode="+opts.buildmode)
    	}
    
    	pkgs = opts.packages()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 16:01:35 UTC 2024
    - 50K bytes
    - Viewed (0)
  2. src/cmd/internal/testdir/testdir_test.go

    		pkgs := goDirPackages(t.T, longdir, singlefilepkgs)
    		// Split flags into gcflags and ldflags
    		ldflags := []string{}
    		for i, fl := range flags {
    			if fl == "-ldflags" {
    				ldflags = flags[i+1:]
    				flags = flags[0:i]
    				break
    			}
    		}
    
    		importcfgfile := importcfg(pkgs)
    
    		for i, pkg := range pkgs {
    			_, err := compileInDir(runcmd, longdir, flags, importcfgfile, pkg.name, pkg.files...)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 20:08:06 UTC 2024
    - 57.5K bytes
    - Viewed (0)
  3. 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)
  4. src/go/build/build.go

    			}
    			args[i] = arg
    		}
    
    		switch verb {
    		case "CFLAGS", "CPPFLAGS", "CXXFLAGS", "FFLAGS", "LDFLAGS":
    			// Change relative paths to absolute.
    			ctxt.makePathsAbsolute(args, di.Dir)
    		}
    
    		switch verb {
    		case "CFLAGS":
    			di.CgoCFLAGS = append(di.CgoCFLAGS, args...)
    		case "CPPFLAGS":
    			di.CgoCPPFLAGS = append(di.CgoCPPFLAGS, args...)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 62.3K bytes
    - Viewed (0)
  5. src/cmd/dist/build.go

    		// main branch for day-to-day work on the Go toolchain itself can
    		// still have full paths for stack traces for compiler crashes and the like.
    		env = append(env, "GOFLAGS=-trimpath -ldflags=-w -gcflags=cmd/...=-dwarf=false")
    	}
    	return env
    }
    
    var toolchain = []string{"cmd/asm", "cmd/cgo", "cmd/compile", "cmd/link", "cmd/preprofile"}
    
    // The bootstrap command runs a build from scratch,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 18:34:40 UTC 2024
    - 54K bytes
    - Viewed (0)
  6. src/cmd/cgo/gcc.go

    	}
    	if strings.HasPrefix(s, "sizeof_") {
    		return "sizeof(" + cname(s[len("sizeof_"):]) + ")"
    	}
    	return s
    }
    
    // ProcessCgoDirectives processes the import C preamble:
    //  1. discards all #cgo CFLAGS, LDFLAGS, nocallback and noescape directives,
    //     so they don't make their way into _cgo_export.h.
    //  2. parse the nocallback and noescape directives.
    func (f *File) ProcessCgoDirectives() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:50:06 UTC 2024
    - 97K bytes
    - Viewed (0)
  7. src/cmd/cgo/out.go

    		fc = f
    	}
    	fm := creat(*objDir + "_cgo_main.c")
    
    	var gccgoInit strings.Builder
    
    	if !*gccgo {
    		for _, arg := range p.LdFlags {
    			fmt.Fprintf(fgo2, "//go:cgo_ldflag %q\n", arg)
    		}
    	} else {
    		fflg := creat(*objDir + "_cgo_flags")
    		for _, arg := range p.LdFlags {
    			fmt.Fprintf(fflg, "_CGO_LDFLAGS=%s\n", arg)
    		}
    		fflg.Close()
    	}
    
    	// Write C main file for using gcc to resolve imports.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 29 16:41:10 UTC 2024
    - 59.6K bytes
    - Viewed (0)
  8. src/cmd/link/internal/ld/lib.go

    		}
    	})
    
    	flags := hostlinkArchArgs(arch)
    
    	moreFlags := trimLinkerArgv(append(flagExtldflags, ldflag...))
    	flags = append(flags, moreFlags...)
    
    	if altLinker != "" {
    		flags = append(flags, "-fuse-ld="+altLinker)
    	}
    	trivialPath := filepath.Join(*flagTmpdir, "trivial.c")
    	outPath := filepath.Join(*flagTmpdir, "a.out")
    	flags = append(flags, "-o", outPath, flag, trivialPath)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 18:45:27 UTC 2024
    - 88.6K bytes
    - Viewed (0)
  9. cmd/kubelet/app/server.go

    // newFlagSetWithGlobals constructs a new pflag.FlagSet with global flags registered
    // on it.
    func newFlagSetWithGlobals() *pflag.FlagSet {
    	fs := pflag.NewFlagSet("", pflag.ExitOnError)
    	// set the normalize func, similar to k8s.io/component-base/cli//flags.go:InitFlags
    	fs.SetNormalizeFunc(cliflag.WordSepNormalizeFunc)
    	// explicitly add flags from libs that register global flags
    	options.AddGlobalFlags(fs)
    	return fs
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 00:05:34 UTC 2024
    - 53.9K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm64.go

    // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    
    func Chflags(path string, flags int) (err error) {
    	var _p0 *byte
    	_p0, err = BytePtrFromString(path)
    	if err != nil {
    		return
    	}
    	_, _, e1 := syscall_syscall(libc_chflags_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
    	if e1 != 0 {
    		err = errnoErr(e1)
    	}
    	return
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 22 19:00:13 UTC 2024
    - 57.5K bytes
    - Viewed (0)
Back to top