1comment "GCC Options" 2 3choice 4 prompt "GCC compiler Version" 5 default BR2_GCC_VERSION_ARC if BR2_GCC_VERSION_4_8_ARC # legacy 6 default BR2_GCC_VERSION_ARC if BR2_arc 7 default BR2_GCC_VERSION_8_X if BR2_powerpc_SPE 8 default BR2_GCC_VERSION_11_X 9 help 10 Select the version of gcc you wish to use. 11 12config BR2_GCC_VERSION_ARC 13 bool "gcc arc (10.x)" 14 # Only supported architecture 15 depends on BR2_arc 16 select BR2_TOOLCHAIN_GCC_AT_LEAST_10 17 18config BR2_GCC_VERSION_8_X 19 bool "gcc 8.x" 20 depends on !BR2_ARCH_NEEDS_GCC_AT_LEAST_9 21 # ARC HS48 rel 31 only supported by gcc arc fork. 22 depends on !BR2_archs4x_rel31 23 # Broken or unsupported architectures 24 depends on !BR2_or1k 25 select BR2_TOOLCHAIN_GCC_AT_LEAST_8 26 27config BR2_GCC_VERSION_10_X 28 bool "gcc 10.x" 29 depends on !BR2_ARCH_NEEDS_GCC_AT_LEAST_11 30 # powerpc spe support has been deprecated since gcc 8.x. 31 # https://gcc.gnu.org/ml/gcc/2018-04/msg00102.html 32 depends on !BR2_powerpc_SPE 33 # ARC HS48 rel 31 only supported by gcc arc fork. 34 depends on !BR2_archs4x_rel31 35 select BR2_TOOLCHAIN_GCC_AT_LEAST_10 36 37config BR2_GCC_VERSION_11_X 38 bool "gcc 11.x" 39 depends on !BR2_ARCH_NEEDS_GCC_AT_LEAST_12 40 # powerpc spe support has been deprecated since gcc 8.x. 41 # https://gcc.gnu.org/ml/gcc/2018-04/msg00102.html 42 depends on !BR2_powerpc_SPE 43 # uClibc-ng broken on sparc due to recent gcc changes 44 # that need to be reverted since gcc 8.4, 9.3 and 10.1. 45 # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98784 46 depends on !BR2_sparc 47 # ARC HS48 rel 31 only supported by gcc arc fork. 48 depends on !BR2_archs4x_rel31 49 select BR2_TOOLCHAIN_GCC_AT_LEAST_11 50 51config BR2_GCC_VERSION_12_X 52 bool "gcc 12.x" 53 # powerpc spe support has been deprecated since gcc 8.x. 54 # https://gcc.gnu.org/ml/gcc/2018-04/msg00102.html 55 depends on !BR2_powerpc_SPE 56 # uClibc-ng broken on sparc due to recent gcc changes 57 # that need to be reverted since gcc 8.4, 9.3 and 10.1. 58 # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98784 59 depends on !BR2_sparc 60 # ARC HS48 rel 31 only supported by gcc arc fork. 61 depends on !BR2_archs4x_rel31 62 select BR2_TOOLCHAIN_GCC_AT_LEAST_12 63 64endchoice 65 66# libcilkrts was introduced in gcc 4.9 and removed in gcc 8.x 67config BR2_GCC_SUPPORTS_LIBCILKRTS 68 bool 69 default y if !BR2_TOOLCHAIN_GCC_AT_LEAST_8 70 71config BR2_GCC_SUPPORTS_DLANG 72 bool 73 default y if BR2_aarch64 74 default y if BR2_arm 75 default y if BR2_i386 76 default y if BR2_mips || BR2_mipsel 77 default y if BR2_mips64 || BR2_mips64el 78 default y if BR2_powerpc || BR2_powerpc64 || BR2_powerpc64le 79 default y if BR2_x86_64 80 default y if BR2_riscv && !BR2_RISCV_64 81 depends on BR2_TOOLCHAIN_GCC_AT_LEAST_9 82 depends on BR2_TOOLCHAIN_USES_GLIBC 83 # "The D front-end is now itself written in D, in order to build GDC, you 84 # will need a working GDC compiler (GCC version 9.1 or later)." 85 # https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=5fee5ec362f7a243f459e6378fd49dfc89dc9fb5 86 depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_12 87 88config BR2_GCC_VERSION 89 string 90 default "8.4.0" if BR2_GCC_VERSION_8_X 91 default "10.4.0" if BR2_GCC_VERSION_10_X 92 default "11.3.0" if BR2_GCC_VERSION_11_X 93 default "12.2.0" if BR2_GCC_VERSION_12_X 94 default "arc-2020.09-release" if BR2_GCC_VERSION_ARC 95 96config BR2_EXTRA_GCC_CONFIG_OPTIONS 97 string "Additional gcc options" 98 default "" 99 help 100 Any additional gcc configure options you may want to 101 include. Those options are applied for all of the gcc 102 initial, gcc intermediate and gcc final passes. 103 104config BR2_TOOLCHAIN_BUILDROOT_CXX 105 bool "Enable C++ support" 106 select BR2_INSTALL_LIBSTDCPP 107 help 108 Enable this option if you want your toolchain to support the 109 C++ language and you want C++ libraries to be installed on 110 your target system. 111 112comment "Fortran support needs a toolchain w/ wchar" 113 depends on BR2_TOOLCHAIN_HAS_LIBQUADMATH 114 depends on !BR2_USE_WCHAR # libquadmath 115 116config BR2_TOOLCHAIN_BUILDROOT_FORTRAN 117 bool "Enable Fortran support" 118 # on architecture building libquadmath, wchar is required 119 depends on !BR2_TOOLCHAIN_HAS_LIBQUADMATH || \ 120 (BR2_TOOLCHAIN_HAS_LIBQUADMATH && BR2_USE_WCHAR) 121 select BR2_TOOLCHAIN_HAS_FORTRAN 122 help 123 Enable this option if you want your toolchain to support the 124 Fortran language and you want Fortran libraries to be 125 installed on your target system. 126 127config BR2_TOOLCHAIN_BUILDROOT_DLANG 128 bool "Enable D language support" 129 depends on BR2_GCC_SUPPORTS_DLANG 130 select BR2_TOOLCHAIN_HAS_DLANG 131 help 132 Enable this option if you want your toolchain to support the 133 D language and you want D libraries to be installed on your 134 target system. 135 136config BR2_GCC_ENABLE_OPENMP 137 bool "Enable compiler OpenMP support" 138 depends on !BR2_PTHREADS_NONE && !BR2_arc && !BR2_microblaze 139 select BR2_TOOLCHAIN_HAS_OPENMP 140 help 141 Enable OpenMP support for the compiler 142 143config BR2_GCC_ENABLE_GRAPHITE 144 bool "Enable graphite support" 145 depends on BR2_TOOLCHAIN_GCC_AT_LEAST_5 146 help 147 This option enables the graphite optimizations in the 148 compiler. 149 150comment "graphite support needs gcc >= 5.x" 151 depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_5 152