Config.in.host 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. comment "GCC Options"
  2. choice
  3. prompt "GCC compiler Version"
  4. default BR2_GCC_VERSION_ARC if BR2_GCC_VERSION_4_8_ARC # legacy
  5. default BR2_GCC_VERSION_ARC if BR2_arc
  6. default BR2_GCC_VERSION_POWERPC_SPE if BR2_POWERPC_CPU_HAS_SPE
  7. default BR2_GCC_VERSION_14_X
  8. help
  9. Select the version of gcc you wish to use.
  10. config BR2_GCC_VERSION_ARC
  11. bool "gcc arc (13.1)"
  12. # Only supported architecture
  13. depends on BR2_arc
  14. select BR2_TOOLCHAIN_GCC_AT_LEAST_13
  15. config BR2_GCC_VERSION_POWERPC_SPE
  16. bool "gcc powerpc spe"
  17. # powerpc spe support has been deprecated since gcc 8.x.
  18. # https://gcc.gnu.org/ml/gcc/2018-04/msg00102.html
  19. depends on BR2_POWERPC_CPU_HAS_SPE
  20. select BR2_TOOLCHAIN_GCC_AT_LEAST_8
  21. config BR2_GCC_VERSION_13_X
  22. bool "gcc 13.x"
  23. # powerpc spe support has been deprecated since gcc 8.x.
  24. # https://gcc.gnu.org/ml/gcc/2018-04/msg00102.html
  25. depends on !BR2_POWERPC_CPU_HAS_SPE
  26. select BR2_TOOLCHAIN_GCC_AT_LEAST_13
  27. config BR2_GCC_VERSION_14_X
  28. bool "gcc 14.x"
  29. # powerpc spe support has been deprecated since gcc 8.x.
  30. # https://gcc.gnu.org/ml/gcc/2018-04/msg00102.html
  31. depends on !BR2_POWERPC_CPU_HAS_SPE
  32. # Severely broken on Microblaze
  33. # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118280
  34. depends on !BR2_microblaze
  35. select BR2_TOOLCHAIN_GCC_AT_LEAST_14
  36. config BR2_GCC_VERSION_15_X
  37. bool "gcc 15.x"
  38. # powerpc spe support has been deprecated since gcc 8.x.
  39. # https://gcc.gnu.org/ml/gcc/2018-04/msg00102.html
  40. depends on !BR2_POWERPC_CPU_HAS_SPE
  41. # Severely broken on Microblaze
  42. # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118280
  43. depends on !BR2_microblaze
  44. select BR2_TOOLCHAIN_GCC_AT_LEAST_15
  45. endchoice
  46. config BR2_GCC_SUPPORTS_DLANG
  47. bool
  48. default y if BR2_aarch64
  49. default y if BR2_arm
  50. default y if BR2_i386
  51. default y if BR2_mips || BR2_mipsel
  52. default y if BR2_mips64 || BR2_mips64el
  53. default y if BR2_powerpc || BR2_powerpc64 || BR2_powerpc64le
  54. default y if BR2_x86_64
  55. default y if BR2_riscv && !BR2_RISCV_64
  56. depends on BR2_TOOLCHAIN_GCC_AT_LEAST_9
  57. depends on BR2_TOOLCHAIN_USES_GLIBC
  58. # "The D front-end is now itself written in D, in order to build GDC, you
  59. # will need a working GDC compiler (GCC version 9.1 or later)."
  60. # https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=5fee5ec362f7a243f459e6378fd49dfc89dc9fb5
  61. depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_12
  62. config BR2_GCC_VERSION
  63. string
  64. default "8.4.0" if BR2_GCC_VERSION_POWERPC_SPE
  65. default "13.4.0" if BR2_GCC_VERSION_13_X
  66. default "14.3.0" if BR2_GCC_VERSION_14_X
  67. default "15.1.0" if BR2_GCC_VERSION_15_X
  68. default "arc-2023.09-release" if BR2_GCC_VERSION_ARC
  69. config BR2_EXTRA_GCC_CONFIG_OPTIONS
  70. string "Additional gcc options"
  71. default ""
  72. help
  73. Any additional gcc configure options you may want to
  74. include. Those options are applied for all of the gcc
  75. initial, gcc intermediate and gcc final passes.
  76. config BR2_TOOLCHAIN_BUILDROOT_CXX
  77. bool "Enable C++ support"
  78. select BR2_INSTALL_LIBSTDCPP
  79. help
  80. Enable this option if you want your toolchain to support the
  81. C++ language and you want C++ libraries to be installed on
  82. your target system.
  83. comment "Fortran support needs a toolchain w/ wchar"
  84. depends on BR2_TOOLCHAIN_HAS_LIBQUADMATH
  85. depends on !BR2_USE_WCHAR # libquadmath
  86. config BR2_TOOLCHAIN_BUILDROOT_FORTRAN
  87. bool "Enable Fortran support"
  88. # on architecture building libquadmath, wchar is required
  89. depends on !BR2_TOOLCHAIN_HAS_LIBQUADMATH || \
  90. (BR2_TOOLCHAIN_HAS_LIBQUADMATH && BR2_USE_WCHAR)
  91. # internal compiler error: in gen_reg_rtx, at emit-rtl.cc:1167
  92. # fixed in gcc 14.x, so disable gcc 13.x
  93. depends on !(BR2_microblaze && BR2_GCC_VERSION_13_X)
  94. select BR2_TOOLCHAIN_HAS_FORTRAN
  95. help
  96. Enable this option if you want your toolchain to support the
  97. Fortran language and you want Fortran libraries to be
  98. installed on your target system.
  99. config BR2_TOOLCHAIN_BUILDROOT_DLANG
  100. bool "Enable D language support"
  101. depends on BR2_GCC_SUPPORTS_DLANG
  102. select BR2_TOOLCHAIN_HAS_DLANG
  103. help
  104. Enable this option if you want your toolchain to support the
  105. D language and you want D libraries to be installed on your
  106. target system.
  107. config BR2_GCC_ENABLE_OPENMP
  108. bool "Enable compiler OpenMP support"
  109. depends on !BR2_PTHREADS_NONE && !BR2_arc && !BR2_microblaze
  110. select BR2_TOOLCHAIN_HAS_OPENMP
  111. help
  112. Enable OpenMP support for the compiler
  113. config BR2_GCC_ENABLE_GRAPHITE
  114. bool "Enable graphite support"
  115. help
  116. This option enables the graphite optimizations in the
  117. compiler.