github.com/bir3/gocompiler@v0.9.2202/src/cmd/gocmd/internal/cfg/zdefaultcc.go (about)

     1  // Code generated by go tool dist; DO NOT EDIT.
     2  
     3  package cfg
     4  
     5  const DefaultPkgConfig = `pkg-config`
     6  func DefaultCC(goos, goarch string) string {
     7  	switch goos+`/`+goarch {
     8  	}
     9  	switch goos {
    10  	case "darwin", "ios", "freebsd", "openbsd":
    11  		return "clang"
    12  	}
    13  	return "gcc"
    14  }
    15  func DefaultCXX(goos, goarch string) string {
    16  	switch goos+`/`+goarch {
    17  	}
    18  	switch goos {
    19  	case "darwin", "ios", "freebsd", "openbsd":
    20  		return "clang++"
    21  	}
    22  	return "g++"
    23  }