...

Source file src/cmd/cgo/zdefaultcc.go

Documentation: cmd/cgo

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

View as plain text