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

     1  // Code generated by go tool dist; DO NOT EDIT.
     2  
     3  package cgo
     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  }