mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-22 06:07:49 +00:00
872341e314
Signed-off-by: Alexey Neyman <stilor@att.net>
217 lines
4.7 KiB
Plaintext
217 lines
4.7 KiB
Plaintext
# Compiler options
|
|
#
|
|
## default y
|
|
## select CC_SUPPORT_CXX if !LIBC_none
|
|
## select CC_SUPPORT_FORTRAN
|
|
## select CC_SUPPORT_JAVA if !CC_GCC_6_or_later
|
|
## select CC_SUPPORT_ADA
|
|
## select CC_SUPPORT_OBJC
|
|
## select CC_SUPPORT_OBJCXX
|
|
## select CC_SUPPORT_GOLANG
|
|
##
|
|
## help gcc is the full-blown GNU compiler. This is what most people will choose.
|
|
## help
|
|
## help gcc supports many languages, a powerful code parser, optimised binary
|
|
## help output, and lots of other features.
|
|
|
|
config CC_GCC_CUSTOM
|
|
bool
|
|
prompt "Custom gcc"
|
|
depends on EXPERIMENTAL
|
|
select CC_GCC_latest
|
|
help
|
|
The choosen gcc version shall be not downloaded. Instead use
|
|
a custom location to get the source.
|
|
|
|
if CC_GCC_CUSTOM
|
|
|
|
config CC_GCC_CUSTOM_LOCATION
|
|
string
|
|
prompt "Full path to custom gcc source"
|
|
help
|
|
Enter the path to the directory or tarball of your source for gcc.
|
|
|
|
If the path is a tarball, it should extract to: <name>-<version>/
|
|
where the name is this component, gcc, and the version is set
|
|
below in the custom version string.
|
|
|
|
config CC_GCC_CUSTOM_VERSION
|
|
string
|
|
prompt "Custom GCC Version"
|
|
help
|
|
Enter the version number for your custom gcc.
|
|
|
|
config CC_GCC_VERSION
|
|
string
|
|
default CC_GCC_CUSTOM_VERSION
|
|
|
|
endif #CC_GCC_CUSTOM
|
|
|
|
if ! CC_GCC_CUSTOM
|
|
|
|
config CC_GCC_SHOW_LINARO
|
|
bool
|
|
prompt "Show Linaro versions"
|
|
help
|
|
Linaro is maintaining some advanced/more stable/experimental versions
|
|
of gcc, especially for the ARM architecture.
|
|
|
|
Those versions have not been blessed by the gcc comunity (nor have they
|
|
been cursed either!), but they look to be pretty much stable, and even
|
|
more stable than the upstream versions. YMMV...
|
|
|
|
If you do not know what this Linaro stuff is, then simply say 'n' here,
|
|
and rest in peace. OTOH, if you know what you are doing, you will be
|
|
able to use and enjoy :-) the Linaro versions by saying 'y' here.
|
|
|
|
Linaro: http://www.linaro.org/
|
|
|
|
choice
|
|
bool
|
|
prompt "gcc version"
|
|
|
|
# Don't remove next line
|
|
# CT_INSERT_VERSION_BELOW
|
|
|
|
config CC_GCC_V_7_1_0
|
|
bool
|
|
prompt "7.1.0"
|
|
select CC_GCC_7
|
|
|
|
config CC_GCC_V_linaro_6_3
|
|
bool
|
|
prompt "linaro-6.3-2017.05"
|
|
depends on CC_GCC_SHOW_LINARO
|
|
select CC_GCC_6
|
|
|
|
config CC_GCC_V_6_3_0
|
|
bool
|
|
prompt "6.3.0"
|
|
select CC_GCC_6
|
|
|
|
config CC_GCC_V_linaro_5_4
|
|
bool
|
|
prompt "linaro-5.4-2017.05"
|
|
depends on CC_GCC_SHOW_LINARO
|
|
select CC_GCC_5
|
|
|
|
config CC_GCC_V_5_4_0
|
|
bool
|
|
prompt "5.4.0"
|
|
select CC_GCC_5
|
|
|
|
config CC_GCC_V_linaro_4_9
|
|
bool
|
|
prompt "linaro-4.9-2017.01"
|
|
depends on CC_GCC_SHOW_LINARO
|
|
select CC_GCC_4_9
|
|
|
|
config CC_GCC_V_4_9_4
|
|
bool
|
|
prompt "4.9.4"
|
|
select CC_GCC_4_9
|
|
|
|
config CC_GCC_V_linaro_4_8
|
|
bool
|
|
prompt "linaro-4.8-2015.06 (OBSOLETE)"
|
|
depends on CC_GCC_SHOW_LINARO
|
|
depends on OBSOLETE
|
|
select CC_GCC_4_8
|
|
|
|
config CC_GCC_V_4_8_5
|
|
bool
|
|
prompt "4.8.5 (OBSOLETE)"
|
|
select CC_GCC_4_8
|
|
depends on OBSOLETE
|
|
|
|
endchoice
|
|
|
|
endif # ! CC_GCC_CUSTOM
|
|
|
|
config CC_GCC_4_8
|
|
bool
|
|
select CC_GCC_4_8_or_later
|
|
|
|
config CC_GCC_4_8_or_later
|
|
bool
|
|
|
|
config CC_GCC_4_9
|
|
bool
|
|
select CC_GCC_4_9_or_later
|
|
|
|
config CC_GCC_4_9_or_later
|
|
bool
|
|
select CC_GCC_4_8_or_later
|
|
|
|
config CC_GCC_5
|
|
bool
|
|
select CC_GCC_5_or_later
|
|
|
|
config CC_GCC_5_or_later
|
|
bool
|
|
select CC_GCC_4_9_or_later
|
|
select CC_GCC_HAS_LIBMPX
|
|
|
|
config CC_GCC_6
|
|
bool
|
|
select CC_GCC_6_or_later
|
|
|
|
config CC_GCC_6_or_later
|
|
bool
|
|
select CC_GCC_5_or_later
|
|
|
|
config CC_GCC_7
|
|
bool
|
|
select CC_GCC_7_or_later
|
|
|
|
config CC_GCC_7_or_later
|
|
bool
|
|
select CC_GCC_6_or_later
|
|
|
|
config CC_GCC_latest
|
|
bool
|
|
select CC_GCC_7_or_later
|
|
|
|
# Only enable gcc's support for plugins if binutils has it as well
|
|
# They are useful only when doing LTO, but it does no harm enabling
|
|
# them even without LTO.
|
|
config CC_GCC_ENABLE_PLUGINS
|
|
bool
|
|
depends on BINUTILS_PLUGINS
|
|
depends on ! STATIC_TOOLCHAIN
|
|
default y
|
|
|
|
# If binutils installs gold, enable support for gold in gcc
|
|
config CC_GCC_GOLD
|
|
bool
|
|
depends on BINUTILS_GOLD_INSTALLED
|
|
default y
|
|
|
|
config CC_GCC_HAS_LIBMPX
|
|
bool
|
|
|
|
if ! CC_GCC_CUSTOM
|
|
|
|
config CC_GCC_VERSION
|
|
string
|
|
# Don't remove next line
|
|
# CT_INSERT_VERSION_STRING_BELOW
|
|
default "7.1.0" if CC_GCC_V_7_1_0
|
|
default "linaro-6.3-2017.05" if CC_GCC_V_linaro_6_3
|
|
default "6.3.0" if CC_GCC_V_6_3_0
|
|
default "linaro-5.4-2017.05" if CC_GCC_V_linaro_5_4
|
|
default "5.4.0" if CC_GCC_V_5_4_0
|
|
default "linaro-4.9-2017.01" if CC_GCC_V_linaro_4_9
|
|
default "4.9.4" if CC_GCC_V_4_9_4
|
|
default "linaro-4.8-2015.06" if CC_GCC_V_linaro_4_8
|
|
default "4.8.5" if CC_GCC_V_4_8_5
|
|
|
|
endif # ! CC_GCC_CUSTOM
|
|
|
|
config CC_LANG_JAVA_USE_ECJ
|
|
bool
|
|
default y
|
|
depends on CC_LANG_JAVA
|
|
|
|
source "config/cc/gcc.in.2"
|