Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 56 of 56 for trim_path (0.14 sec)

  1. src/cmd/go/internal/cfg/cfg.go

    	BuildRace          bool                    // -race flag
    	BuildToolexec      []string                // -toolexec flag
    	BuildToolchainName string
    	BuildTrimpath      bool // -trimpath flag
    	BuildV             bool // -v flag
    	BuildWork          bool // -work flag
    	BuildX             bool // -x flag
    
    	ModCacheRW bool   // -modcacherw flag
    	ModFile    string // -modfile flag
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 17:13:51 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  2. src/cmd/go/internal/work/shell.go

    	for i, s := range a {
    		if i > 0 {
    			buf.WriteByte(' ')
    		}
    		q := strconv.Quote(s)
    		// A gccgo command line can contain -( and -).
    		// Make sure we quote them since they are special to the shell.
    		// The trimpath argument can also contain > (part of =>) and ;. Quote those too.
    		if s == "" || strings.ContainsAny(s, " ()>;") || len(q) > len(s)+2 {
    			buf.WriteString(q)
    		} else {
    			buf.WriteString(s)
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 19.8K bytes
    - Viewed (0)
  3. src/cmd/doc/doc_test.go

    	buildCtx.GOPATH = ""
    	testGOPATH = true // force GOPATH mode; module test is in cmd/go/testdata/script/mod_doc.txt
    
    	// Set GOROOT in case runtime.GOROOT is wrong (for example, if the test was
    	// built with -trimpath). dirsInit would identify it using 'go env GOROOT',
    	// but we can't be sure that the 'go' in $PATH is the right one either.
    	buildCtx.GOROOT = testenv.GOROOT(nil)
    	build.Default.GOROOT = testenv.GOROOT(nil)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 07 19:16:55 UTC 2023
    - 31.2K bytes
    - Viewed (0)
  4. src/cmd/go/internal/load/pkg.go

    	}
    	if cfg.BuildTrimpath {
    		appendSetting("-trimpath", "true")
    	}
    	if p.DefaultGODEBUG != "" {
    		appendSetting("DefaultGODEBUG", p.DefaultGODEBUG)
    	}
    	cgo := "0"
    	if cfg.BuildContext.CgoEnabled {
    		cgo = "1"
    	}
    	appendSetting("CGO_ENABLED", cgo)
    	// https://go.dev/issue/52372: only include CGO flags if -trimpath is not set.
    	// (If -trimpath is set, it is possible that these flags include system paths.)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 28 17:00:51 UTC 2024
    - 120K bytes
    - Viewed (0)
  5. src/cmd/link/internal/ld/dwarf.go

    	// a value. Linking takes place in a temporary directory, so there's
    	// no point including it here. Paths in the file table are usually
    	// absolute, in which case debuggers will ignore this value. -trimpath
    	// produces relative paths, but we don't know where they start, so
    	// all we can do here is try not to make things worse.
    	return "."
    }
    
    func (d *dwctxt) importInfoSymbol(dsym loader.Sym) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 16:25:18 UTC 2024
    - 72.4K bytes
    - Viewed (0)
  6. src/cmd/go/alldocs.go

    //		during the build. For more information about build tags, see
    //		'go help buildconstraint'. (Earlier versions of Go used a
    //		space-separated list, and that form is deprecated but still recognized.)
    //	-trimpath
    //		remove all file system paths from the resulting executable.
    //		Instead of absolute file system paths, the recorded file names
    //		will begin either a module path@version (when using modules),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 16:54:28 UTC 2024
    - 142.4K bytes
    - Viewed (0)
Back to top