Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for quotedSplit (0.12 sec)

  1. src/cmd/dist/quoted.go

    package main
    
    import "fmt"
    
    // quotedSplit is a verbatim copy from cmd/internal/quoted.go:Split and its
    // dependencies (isSpaceByte). Since this package is built using the host's
    // Go compiler, it cannot use `cmd/internal/...`. We also don't want to export
    // it to all Go users.
    //
    // Please keep those in sync.
    func quotedSplit(s string) ([]string, error) {
    	// Split fields allowing '' or "" around elements.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 09 14:05:53 UTC 2022
    - 1.2K bytes
    - Viewed (0)
  2. src/cmd/dist/build.go

    		return
    	}
    	cc1 := defaultcc[""]
    	if cc1 == "" {
    		cc1 = "gcc"
    		for _, os := range clangos {
    			if gohostos == os {
    				cc1 = "clang"
    				break
    			}
    		}
    	}
    	cc, err := quotedSplit(cc1)
    	if err != nil {
    		fatalf("split CC: %v", err)
    	}
    	var ccHelp = append(cc, "--help")
    
    	if output, err := exec.Command(ccHelp[0], ccHelp[1:]...).CombinedOutput(); err != nil {
    		outputHdr := ""
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 18:34:40 UTC 2024
    - 54K bytes
    - Viewed (0)
Back to top