config/cc.in
changeset 9 22fec39016f4
child 41 fd6ad5721f77
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/config/cc.in	Sun Mar 04 20:09:22 2007 +0000
     1.3 @@ -0,0 +1,185 @@
     1.4 +# Compiler options
     1.5 +
     1.6 +menu "C compiler"
     1.7 +
     1.8 +comment "Core C Compiler (used to build the C library)"
     1.9 +
    1.10 +config CC_USE_CORE
    1.11 +    bool
    1.12 +    prompt "Use a different core C compiler"
    1.13 +    default n
    1.14 +    help
    1.15 +      Use a different compiler to build the C library than the one
    1.16 +      in the final toolchain.
    1.17 +      
    1.18 +      You can change the compiler used, or only the version used.
    1.19 +
    1.20 +      You most probably don't need that.
    1.21 +
    1.22 +config CC_CORE_GCC
    1.23 +    bool
    1.24 +    default y if ! CC_USE_CORE && CC_GCC
    1.25 +    default n if CC_USE_CORE || ! CC_GCC
    1.26 +
    1.27 +config CC_CORE_TCC
    1.28 +    bool
    1.29 +    default y if ! CC_USE_CORE && CC_TCC
    1.30 +    default n if CC_USE_CORE || ! CC_TCC
    1.31 +
    1.32 +choice
    1.33 +    bool
    1.34 +    prompt "Core C compiler:"
    1.35 +    depends on CC_USE_CORE
    1.36 +
    1.37 +config CC_CORE_GCC
    1.38 +    bool
    1.39 +    prompt "gcc"
    1.40 +
    1.41 +#config CC_CORE_TCC
    1.42 +#    bool
    1.43 +#    prompt "tcc (EXPERIMENTAL)"
    1.44 +
    1.45 +endchoice
    1.46 +
    1.47 +config CC_CORE_VERSION
    1.48 +    string
    1.49 +
    1.50 +config CC_CORE
    1.51 +    string
    1.52 +    default "gcc" if CC_CORE_GCC
    1.53 +    default "tcc" if CC_CORE_TCC
    1.54 +
    1.55 +if CC_CORE_GCC && CC_USE_CORE
    1.56 +source config/cc_core_gcc.in
    1.57 +endif
    1.58 +
    1.59 +if CC_CORE_TCC && CC_USE_CORE
    1.60 +source config/cc_core_tcc.in
    1.61 +endif
    1.62 +
    1.63 +comment "Final C compiler"
    1.64 +
    1.65 +choice
    1.66 +    bool
    1.67 +    prompt "Final C compiler"
    1.68 +    default CC_GCC
    1.69 +
    1.70 +config CC_GCC
    1.71 +    bool
    1.72 +    prompt "gcc"
    1.73 +    select CC_SUPPORT_CXX
    1.74 +    select CC_SUPPORT_FORTRAN
    1.75 +    select CC_SUPPORT_JAVA
    1.76 +    select CC_SUPPORT_ADA
    1.77 +    select CC_SUPPORT_OBJC
    1.78 +    select CC_SUPPORT_OBJCXX
    1.79 +
    1.80 +#config CC_TCC
    1.81 +#    bool
    1.82 +#    prompt "tcc (EXPERIMENTAL)"
    1.83 +#    select CC_LANG_C
    1.84 +
    1.85 +endchoice
    1.86 +
    1.87 +config CC_VERSION
    1.88 +    string
    1.89 +
    1.90 +config CC
    1.91 +    string
    1.92 +    default "gcc" if CC_GCC
    1.93 +    default "tcc" if CC_TCC
    1.94 +
    1.95 +if CC_GCC
    1.96 +source config/cc_gcc.in
    1.97 +endif
    1.98 +
    1.99 +if CC_GCC
   1.100 +source config/cc_tcc.in
   1.101 +endif
   1.102 +
   1.103 +config CC_SUPPORT_CXX
   1.104 +    bool
   1.105 +
   1.106 +config CC_SUPPORT_FORTRAN
   1.107 +    bool
   1.108 +
   1.109 +config CC_SUPPORT_JAVA
   1.110 +    bool
   1.111 +
   1.112 +config CC_SUPPORT_ADA
   1.113 +    bool
   1.114 +
   1.115 +config CC_SUPPORT_OBJC
   1.116 +    bool
   1.117 +
   1.118 +config CC_SUPPORT_OBJCXX
   1.119 +    bool
   1.120 +
   1.121 +comment "Additionnal supported languages:"
   1.122 +
   1.123 +config CC_LANG_CXX
   1.124 +    bool
   1.125 +    prompt "C++"
   1.126 +    default n
   1.127 +    depends on CC_SUPPORT_CXX
   1.128 +    help
   1.129 +      Only select this if you know that your specific combination of
   1.130 +      compiler and its version does support this language.
   1.131 +
   1.132 +config CC_LANG_FORTRAN
   1.133 +    bool
   1.134 +    prompt "Fortran"
   1.135 +    default n
   1.136 +    depends on CC_SUPPORT_FORTRAN
   1.137 +    help
   1.138 +      Only select this if you know that your specific combination of
   1.139 +      compiler and its version does support this language.
   1.140 +
   1.141 +config CC_LANG_JAVA
   1.142 +    bool
   1.143 +    prompt "Java"
   1.144 +    default n
   1.145 +    depends on CC_SUPPORT_JAVA
   1.146 +    help
   1.147 +      Only select this if you know that your specific combination of
   1.148 +      compiler and its version does support this language.
   1.149 +
   1.150 +config CC_LANG_ADA
   1.151 +    bool
   1.152 +    prompt "ADA"
   1.153 +    default n
   1.154 +    depends on CC_SUPPORT_ADA
   1.155 +    help
   1.156 +      Only select this if you know that your specific combination of
   1.157 +      compiler and its version does support this language.
   1.158 +
   1.159 +config CC_LANG_OBJC
   1.160 +    bool
   1.161 +    prompt "Objective-C"
   1.162 +    default n
   1.163 +    depends on CC_SUPPORT_OBJC
   1.164 +    help
   1.165 +      Only select this if you know that your specific combination of
   1.166 +      compiler and its version does support this language.
   1.167 +
   1.168 +config CC_LANG_OBJCXX
   1.169 +    bool
   1.170 +    prompt "Objective-C++"
   1.171 +    default n
   1.172 +    depends on CC_SUPPORT_OBJCXX
   1.173 +    help
   1.174 +      Only select this if you know that your specific combination of
   1.175 +      compiler and its version does support this language.
   1.176 +
   1.177 +config CC_LANG_OTHERS
   1.178 +    string
   1.179 +    prompt "Other languages"
   1.180 +    default ""
   1.181 +    help
   1.182 +      Enter here a comma-separated list of languages that you know your compiler
   1.183 +      supports, besides those listed above.
   1.184 +
   1.185 +      Eg. gcc-4.1+ has a toy programming language, treelang. As it is not usefull
   1.186 +      in real life, it is not available in the selection above.
   1.187 +
   1.188 +endmenu