diff options
author | Yann E. MORIN" <yann.morin.1998@free.fr> | 2013-11-08 15:18:09 +0100 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2013-11-08 15:18:09 +0100 |
commit | cf3682887836487a5954e5e5845543e44d93afd0 (patch) | |
tree | 96decc5ab3441cdc1bbf701f6b8bcfe2d38ce736 | |
parent | bb151f2762b39af90652399917bcbfb0f955675b (diff) | |
download | crosstool-ng-cf3682887836487a5954e5e5845543e44d93afd0.tar.gz crosstool-ng-cf3682887836487a5954e5e5845543e44d93afd0.tar.bz2 crosstool-ng-cf3682887836487a5954e5e5845543e44d93afd0.zip |
cc/gcc: Add support for golang
Signed-off-by: Richard Weinberger <richard@nod.at>
Message-Id: <ca374aef944e28a6ec3c.1383921708@azrael>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
-rw-r--r-- | config/cc.in | 14 | ||||
-rw-r--r-- | config/cc/gcc.in | 1 | ||||
-rw-r--r-- | scripts/build/cc/gcc.sh | 1 | ||||
-rwxr-xr-x | scripts/showSamples.sh | 1 |
4 files changed, 17 insertions, 0 deletions
diff --git a/config/cc.in b/config/cc.in index d244e99f..ff697270 100644 --- a/config/cc.in +++ b/config/cc.in @@ -31,6 +31,9 @@ config CC_SUPPORT_OBJC config CC_SUPPORT_OBJCXX bool +config CC_SUPPORT_GOLANG + bool + comment "Additional supported languages:" config CC_LANG_CXX @@ -98,6 +101,17 @@ config CC_LANG_OBJCXX Only select this if you know that your specific version of the compiler supports this language. +config CC_LANG_GOLANG + bool + prompt "Go (EXPERIMENTAL)" + depends on EXPERIMENTAL + depends on CC_SUPPORT_GOLANG + help + Enable building a Go compiler. + + Only select this if you know that your specific version of the + compiler supports this language. + config CC_LANG_OTHERS string prompt "Other languages (EXPERIMENTAL)" diff --git a/config/cc/gcc.in b/config/cc/gcc.in index 9b68ac5b..9eb7bcee 100644 --- a/config/cc/gcc.in +++ b/config/cc/gcc.in @@ -343,6 +343,7 @@ config CC_GCC_4_8 select CC_GCC_HAS_BUILD_ID select CC_GCC_HAS_LNK_HASH_STYLE select CC_GCC_HAS_LIBQUADMATH + select CC_SUPPORT_GOLANG config CC_GCC_4_8_or_later bool diff --git a/scripts/build/cc/gcc.sh b/scripts/build/cc/gcc.sh index e6dc6dbf..0824defb 100644 --- a/scripts/build/cc/gcc.sh +++ b/scripts/build/cc/gcc.sh @@ -73,6 +73,7 @@ cc_gcc_lang_list() { [ "${CT_CC_LANG_JAVA}" = "y" ] && lang_list+=",java" [ "${CT_CC_LANG_OBJC}" = "y" ] && lang_list+=",objc" [ "${CT_CC_LANG_OBJCXX}" = "y" ] && lang_list+=",obj-c++" + [ "${CT_CC_LANG_GOLANG}" = "y" ] && lang_list+=",go" lang_list+="${CT_CC_LANG_OTHERS:+,${CT_CC_LANG_OTHERS}}" printf "%s" "${lang_list}" diff --git a/scripts/showSamples.sh b/scripts/showSamples.sh index 75bec047..50089f4d 100755 --- a/scripts/showSamples.sh +++ b/scripts/showSamples.sh @@ -83,6 +83,7 @@ dump_single_sample() { [ "${CT_CC_LANG_ADA}" = "y" ] && printf ",ADA" [ "${CT_CC_LANG_OBJC}" = "y" ] && printf ",Objective-C" [ "${CT_CC_LANG_OBJCXX}" = "y" ] && printf ",Objective-C++" + [ "${CT_CC_LANG_GOLANG}" = "y" ] && printf ",Go" [ -n "${CT_CC_LANG_OTHERS}" ] && printf ",${CT_CC_LANG_OTHERS}" printf ")\n" printf " %-*s : %s (threads: %s)\n" ${width} "C library" "${CT_LIBC}${CT_LIBC_VERSION:+-}${CT_LIBC_VERSION}" "${CT_THREADS}" |