github.com/go-asm/go@v1.21.1-0.20240213172139-40c5ead50c48/cmd/go/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  
     7  func DefaultCC(goos, goarch string) string {
     8  	switch goos + `/` + goarch {
     9  	}
    10  	switch goos {
    11  	case "darwin", "ios", "freebsd", "openbsd":
    12  		return "clang"
    13  	}
    14  	return "gcc"
    15  }
    16  func DefaultCXX(goos, goarch string) string {
    17  	switch goos + `/` + goarch {
    18  	}
    19  	switch goos {
    20  	case "darwin", "ios", "freebsd", "openbsd":
    21  		return "clang++"
    22  	}
    23  	return "g++"
    24  }