config/cc.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Mon Apr 23 20:30:34 2007 +0000 (2007-04-23)
changeset 47 7e2539937b6e
parent 1 eeea35fbf182
child 91 aa1d248fa51b
permissions -rw-r--r--
Second shot at merging from the MIPS branch:
- log level boost for warnings and errors
- option re-ordering
- help updating
     1 # Compiler options
     2 
     3 menu "C compiler"
     4 
     5 comment "Core C Compiler (used to build the C library)"
     6 
     7 config CC_USE_CORE
     8     bool
     9     prompt "Use a different core C compiler"
    10     default n
    11     help
    12       Use a different compiler to build the C library than the one
    13       in the final toolchain.
    14       
    15       You can change the compiler used, or only the version used.
    16 
    17       You most probably don't need that.
    18 
    19 config CC_CORE_GCC
    20     bool
    21     default y if ! CC_USE_CORE && CC_GCC
    22     default n if CC_USE_CORE || ! CC_GCC
    23 
    24 config CC_CORE_TCC
    25     bool
    26     default y if ! CC_USE_CORE && CC_TCC
    27     default n if CC_USE_CORE || ! CC_TCC
    28 
    29 choice
    30     bool
    31     prompt "Core C compiler:"
    32     depends on CC_USE_CORE
    33 
    34 config CC_CORE_GCC
    35     bool
    36     prompt "gcc"
    37 
    38 #config CC_CORE_TCC
    39 #    bool
    40 #    prompt "tcc (EXPERIMENTAL)"
    41 #    depends on EXPERIMENTAL
    42 
    43 endchoice
    44 
    45 config CC_CORE_VERSION
    46     string
    47 
    48 config CC_CORE
    49     string
    50     default "gcc" if CC_CORE_GCC
    51     default "tcc" if CC_CORE_TCC
    52 
    53 if CC_CORE_GCC && CC_USE_CORE
    54 source config/cc_core_gcc.in
    55 endif
    56 
    57 if CC_CORE_TCC && CC_USE_CORE
    58 source config/cc_core_tcc.in
    59 endif
    60 
    61 comment "Final C compiler"
    62 
    63 choice
    64     bool
    65     prompt "Final C compiler"
    66     default CC_GCC
    67 
    68 config CC_GCC
    69     bool
    70     prompt "gcc"
    71     select CC_SUPPORT_CXX
    72     select CC_SUPPORT_FORTRAN
    73     select CC_SUPPORT_JAVA
    74     select CC_SUPPORT_ADA
    75     select CC_SUPPORT_OBJC
    76     select CC_SUPPORT_OBJCXX
    77 
    78 #config CC_TCC
    79 #    bool
    80 #    prompt "tcc (EXPERIMENTAL)"
    81 #    select CC_LANG_C
    82 #    depends on EXPERIMENTAL
    83 
    84 endchoice
    85 
    86 config CC_VERSION
    87     string
    88 
    89 config CC
    90     string
    91     default "gcc" if CC_GCC
    92     default "tcc" if CC_TCC
    93 
    94 if CC_GCC
    95 source config/cc_gcc.in
    96 endif
    97 
    98 if CC_GCC
    99 source config/cc_tcc.in
   100 endif
   101 
   102 config CC_SUPPORT_CXX
   103     bool
   104 
   105 config CC_SUPPORT_FORTRAN
   106     bool
   107 
   108 config CC_SUPPORT_JAVA
   109     bool
   110 
   111 config CC_SUPPORT_ADA
   112     bool
   113 
   114 config CC_SUPPORT_OBJC
   115     bool
   116 
   117 config CC_SUPPORT_OBJCXX
   118     bool
   119 
   120 comment "Additionnal supported languages:"
   121 
   122 config CC_LANG_CXX
   123     bool
   124     prompt "C++"
   125     default n
   126     depends on CC_SUPPORT_CXX
   127     help
   128       Only select this if you know that your specific combination of
   129       compiler and its version does support this language.
   130 
   131 config CC_LANG_FORTRAN
   132     bool
   133     prompt "Fortran"
   134     default n
   135     depends on CC_SUPPORT_FORTRAN
   136     help
   137       Only select this if you know that your specific combination of
   138       compiler and its version does support this language.
   139 
   140 config CC_LANG_JAVA
   141     bool
   142     prompt "Java"
   143     default n
   144     depends on CC_SUPPORT_JAVA
   145     help
   146       Only select this if you know that your specific combination of
   147       compiler and its version does support this language.
   148 
   149 config CC_LANG_ADA
   150     bool
   151     prompt "ADA"
   152     default n
   153     depends on CC_SUPPORT_ADA
   154     help
   155       Only select this if you know that your specific combination of
   156       compiler and its version does support this language.
   157 
   158 config CC_LANG_OBJC
   159     bool
   160     prompt "Objective-C"
   161     default n
   162     depends on CC_SUPPORT_OBJC
   163     help
   164       Only select this if you know that your specific combination of
   165       compiler and its version does support this language.
   166 
   167 config CC_LANG_OBJCXX
   168     bool
   169     prompt "Objective-C++"
   170     default n
   171     depends on CC_SUPPORT_OBJCXX
   172     help
   173       Only select this if you know that your specific combination of
   174       compiler and its version does support this language.
   175 
   176 config CC_LANG_OTHERS
   177     string
   178     prompt "Other languages"
   179     default ""
   180     help
   181       Enter here a comma-separated list of languages that you know your compiler
   182       supports, besides those listed above.
   183 
   184       Eg. gcc-4.1+ has a toy programming language, treelang. As it is not usefull
   185       in real life, it is not available in the selection above.
   186 
   187 endmenu