github.com/bir3/gocompiler@v0.3.205/src/go/build/zcgo.go (about) 1 // Code generated by go tool dist; DO NOT EDIT. 2 3 package build 4 5 import "runtime" 6 7 var defaultCGO_ENABLED = func(goos string, goarch string) string { 8 switch goos + `/` + goarch { 9 10 case "linux/amd64": 11 return "" 12 13 case "darwin/amd64": 14 return "" 15 16 case "darwin/arm64": 17 return "" 18 19 case "freebsd/386": 20 return "" 21 22 case "freebsd/amd64": 23 return "" 24 25 case "linux/386": 26 return "" 27 28 case "linux/arm64": 29 return "" 30 31 case "linux/armv6l": 32 return "" 33 34 case "linux/ppc64le": 35 return "" 36 37 case "linux/s390x": 38 return "1" 39 40 case "windows/386": 41 return "" 42 43 case "windows/amd64": 44 return "" 45 46 case "windows/arm64": 47 return "" 48 49 case "js/wasm": 50 return "" 51 52 } 53 panic("gocompiler: unknown platform " + goos + `/` + goarch) 54 }(runtime.GOOS, runtime.GOARCH) 55 56 var cgoEnabled = map[string]bool{ 57 "aix/ppc64": true, 58 "android/386": true, 59 "android/amd64": true, 60 "android/arm": true, 61 "android/arm64": true, 62 "darwin/amd64": true, 63 "darwin/arm64": true, 64 "dragonfly/amd64": true, 65 "freebsd/386": true, 66 "freebsd/amd64": true, 67 "freebsd/arm": true, 68 "freebsd/arm64": true, 69 "freebsd/riscv64": true, 70 "illumos/amd64": true, 71 "ios/amd64": true, 72 "ios/arm64": true, 73 "linux/386": true, 74 "linux/amd64": true, 75 "linux/arm": true, 76 "linux/arm64": true, 77 "linux/loong64": true, 78 "linux/mips": true, 79 "linux/mips64": true, 80 "linux/mips64le": true, 81 "linux/mipsle": true, 82 "linux/ppc64le": true, 83 "linux/riscv64": true, 84 "linux/s390x": true, 85 "linux/sparc64": true, 86 "netbsd/386": true, 87 "netbsd/amd64": true, 88 "netbsd/arm": true, 89 "netbsd/arm64": true, 90 "openbsd/386": true, 91 "openbsd/amd64": true, 92 "openbsd/arm": true, 93 "openbsd/arm64": true, 94 "openbsd/mips64": true, 95 "solaris/amd64": true, 96 "windows/386": true, 97 "windows/amd64": true, 98 "windows/arm64": true, 99 } 100 101 //gocompiler patch