]> rtime.felk.cvut.cz Git - coffee/buildroot.git/blob - package/gcc/Config.in.host
lrzsz: install symlinks for XMODEM and YMODEM
[coffee/buildroot.git] / package / gcc / Config.in.host
1 comment "GCC Options"
2
3 choice
4         prompt "GCC compiler Version"
5         default BR2_GCC_VERSION_ARC if BR2_arc
6         default BR2_GCC_VERSION_OR1K if BR2_or1k
7         default BR2_GCC_VERSION_6_X
8         help
9           Select the version of gcc you wish to use.
10
11 config BR2_GCC_VERSION_ARC
12         bool "gcc arc (7.x)"
13         # Only supported architecture
14         depends on BR2_arc
15         select BR2_TOOLCHAIN_GCC_AT_LEAST_7
16
17 config BR2_GCC_VERSION_OR1K
18         bool "gcc or1k (5.x)"
19         # Only supported architecture
20         depends on BR2_or1k
21         select BR2_TOOLCHAIN_GCC_AT_LEAST_5
22
23 config BR2_GCC_VERSION_4_9_X
24         bool "gcc 4.9.x"
25         depends on !BR2_ARCH_NEEDS_GCC_AT_LEAST_5
26         # Broken or unsupported architectures
27         depends on !BR2_arc
28         depends on !BR2_or1k
29         # musl on microblaze, ppc64 and mips64 unsupported
30         depends on !(BR2_TOOLCHAIN_USES_MUSL && (BR2_microblazeel || BR2_microblazebe))
31         depends on !(BR2_TOOLCHAIN_USES_MUSL && (BR2_powerpc64 || BR2_powerpc64le))
32         depends on !(BR2_TOOLCHAIN_USES_MUSL && (BR2_mips64 || BR2_mips64el))
33         # glibc >= 2.26 needs gcc >= 6.2
34         depends on !(BR2_TOOLCHAIN_USES_GLIBC && BR2_powerpc64le)
35         select BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
36
37 config BR2_GCC_VERSION_5_X
38         bool "gcc 5.x"
39         depends on !BR2_ARCH_NEEDS_GCC_AT_LEAST_6
40         # Broken or unsupported architectures
41         depends on !BR2_arc
42         depends on !BR2_or1k
43         # musl on ppc64 and mips64 unsupported
44         depends on !(BR2_TOOLCHAIN_USES_MUSL && (BR2_powerpc64 || BR2_powerpc64le))
45         depends on !(BR2_TOOLCHAIN_USES_MUSL && (BR2_mips64 || BR2_mips64el))
46         # glibc >= 2.26 needs gcc >= 6.2
47         depends on !(BR2_TOOLCHAIN_USES_GLIBC && BR2_powerpc64le)
48         select BR2_TOOLCHAIN_GCC_AT_LEAST_5
49
50 config BR2_GCC_VERSION_6_X
51         bool "gcc 6.x"
52         depends on !BR2_ARCH_NEEDS_GCC_AT_LEAST_7
53         # Broken or unsupported architectures
54         depends on !BR2_arc
55         depends on !BR2_or1k
56         select BR2_TOOLCHAIN_GCC_AT_LEAST_6
57
58 config BR2_GCC_VERSION_7_X
59         bool "gcc 7.x"
60         # Broken or unsupported architectures
61         depends on !BR2_or1k
62         select BR2_TOOLCHAIN_GCC_AT_LEAST_7
63
64 endchoice
65
66 config BR2_GCC_SUPPORTS_FINEGRAINEDMTUNE
67         bool
68         default y
69
70 config BR2_GCC_VERSION
71         string
72         default "4.9.4"     if BR2_GCC_VERSION_4_9_X
73         default "5.5.0"     if BR2_GCC_VERSION_5_X
74         default "6.4.0"     if BR2_GCC_VERSION_6_X
75         default "7.3.0"     if BR2_GCC_VERSION_7_X
76         default "arc-2018.03-rc1" if BR2_GCC_VERSION_ARC
77         default "or1k-musl-5.4.0-20170218" if BR2_GCC_VERSION_OR1K
78
79 config BR2_EXTRA_GCC_CONFIG_OPTIONS
80         string "Additional gcc options"
81         default ""
82         help
83           Any additional gcc configure options you may want to
84           include. Those options are applied for all of the gcc
85           initial, gcc intermediate and gcc final passes.
86
87 config BR2_TOOLCHAIN_BUILDROOT_CXX
88         bool "Enable C++ support"
89         select BR2_INSTALL_LIBSTDCPP
90         help
91           Enable this option if you want your toolchain to support the
92           C++ language and you want C++ libraries to be installed on
93           your target system.
94
95 comment "Fortran support needs a toolchain w/ wchar"
96         depends on BR2_TOOLCHAIN_HAS_LIBQUADMATH
97         depends on !BR2_USE_WCHAR # libquadmath
98
99 config BR2_TOOLCHAIN_BUILDROOT_FORTRAN
100         bool "Enable Fortran support"
101         # on architecture building libquadmath, wchar is required
102         depends on !BR2_TOOLCHAIN_HAS_LIBQUADMATH || \
103                 (BR2_TOOLCHAIN_HAS_LIBQUADMATH && BR2_USE_WCHAR)
104         select BR2_TOOLCHAIN_HAS_FORTRAN
105         help
106           Enable this option if you want your toolchain to support the
107           Fortran language and you want Fortran libraries to be
108           installed on your target system.
109
110 config BR2_GCC_ENABLE_LTO
111         bool "Enable compiler link-time-optimization support"
112         select BR2_BINUTILS_ENABLE_LTO
113         help
114           This option enables link-time optimization (LTO) support in
115           gcc.
116
117 config BR2_GCC_ENABLE_OPENMP
118         bool "Enable compiler OpenMP support"
119         depends on !BR2_PTHREADS_NONE && !BR2_arc && !BR2_microblaze
120         help
121           Enable OpenMP support for the compiler
122
123 config BR2_GCC_ENABLE_LIBMUDFLAP
124         bool "Enable libmudflap support"
125         # There are architectures, or specific configurations for
126         # which mudflap is not supported.
127         depends on !BR2_ARM_INSTRUCTIONS_THUMB && !BR2_powerpc_SPE
128         depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
129         help
130           libmudflap is a gcc library used for the mudflap pointer
131           debugging functionality. It is only needed if you intend to
132           use the -fmudflap gcc flag.
133
134           See http://gcc.gnu.org/wiki/Mudflap_Pointer_Debugging and
135           the help of the gcc -fmudflap option for more details.
136
137           If you're unsure, leave this option disabled.
138
139 config BR2_GCC_ENABLE_GRAPHITE
140         bool "Enable graphite support"
141         depends on BR2_TOOLCHAIN_GCC_AT_LEAST_5
142         help
143           This option enables the graphite optimizations in the
144           compiler.
145
146 comment "graphite support needs gcc >= 5.x"
147         depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_5