syslist.go 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. // Copyright 2011 The Go Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style
  3. // license that can be found in the GO-LICENSE file.
  4. // Modifications
  5. //
  6. // Copyright 2022 The Gc Authors. All rights reserved.
  7. // Use of this source code is governed by a BSD-style
  8. // license that can be found in the LICENSE file.
  9. // package build // /usr/local/go/src/go/build/syslist.go
  10. package gc // import "modernc.org/gc/v3"
  11. // Go 1.19.3
  12. // Note that this file is read by internal/goarch/gengoarch.go and by
  13. // internal/goos/gengoos.go. If you change this file, look at those
  14. // files as well.
  15. // knownOS is the list of past, present, and future known GOOS values.
  16. // Do not remove from this list, as it is used for filename matching.
  17. // If you add an entry to this list, look at unixOS, below.
  18. var knownOS = map[string]bool{
  19. "aix": true,
  20. "android": true,
  21. "darwin": true,
  22. "dragonfly": true,
  23. "freebsd": true,
  24. "hurd": true,
  25. "illumos": true,
  26. "ios": true,
  27. "js": true,
  28. "linux": true,
  29. "nacl": true,
  30. "netbsd": true,
  31. "openbsd": true,
  32. "plan9": true,
  33. "solaris": true,
  34. "windows": true,
  35. "zos": true,
  36. }
  37. // unixOS is the set of GOOS values matched by the "unix" build tag.
  38. // This is not used for filename matching.
  39. // This list also appears in cmd/dist/build.go and
  40. // cmd/go/internal/imports/build.go.
  41. var unixOS = map[string]bool{
  42. "aix": true,
  43. "android": true,
  44. "darwin": true,
  45. "dragonfly": true,
  46. "freebsd": true,
  47. "hurd": true,
  48. "illumos": true,
  49. "ios": true,
  50. "linux": true,
  51. "netbsd": true,
  52. "openbsd": true,
  53. "solaris": true,
  54. }
  55. // knownArch is the list of past, present, and future known GOARCH values.
  56. // Do not remove from this list, as it is used for filename matching.
  57. var knownArch = map[string]bool{
  58. "386": true,
  59. "amd64": true,
  60. "amd64p32": true,
  61. "arm": true,
  62. "armbe": true,
  63. "arm64": true,
  64. "arm64be": true,
  65. "loong64": true,
  66. "mips": true,
  67. "mipsle": true,
  68. "mips64": true,
  69. "mips64le": true,
  70. "mips64p32": true,
  71. "mips64p32le": true,
  72. "ppc": true,
  73. "ppc64": true,
  74. "ppc64le": true,
  75. "riscv": true,
  76. "riscv64": true,
  77. "s390": true,
  78. "s390x": true,
  79. "sparc": true,
  80. "sparc64": true,
  81. "wasm": true,
  82. }