config/cc.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sun May 13 21:11:27 2007 +0000 (2007-05-13)
changeset 91 aa1d248fa51b
parent 41 fd6ad5721f77
child 331 0c05f9ea3254
permissions -rw-r--r--
Remove dead entries for components not yet integrated: cygwin kernel, tcc...
Some fixups in config entries, to avoid warnings when parsed by the kconfig parser.
     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 choice
    20     bool
    21     prompt "Core C compiler:"
    22     depends on CC_USE_CORE
    23 
    24 config CC_CORE_GCC
    25     bool
    26     prompt "gcc"
    27 
    28 endchoice
    29 
    30 config CC_CORE_VERSION
    31     string
    32 
    33 config CC_CORE
    34     string
    35     default "gcc" if CC_CORE_GCC
    36 
    37 if CC_CORE_GCC && CC_USE_CORE
    38 source config/cc_core_gcc.in
    39 endif
    40 
    41 comment "Final C compiler"
    42 
    43 choice
    44     bool
    45     prompt "Final C compiler"
    46     default CC_GCC
    47 
    48 config CC_GCC
    49     bool
    50     prompt "gcc"
    51     select CC_SUPPORT_CXX
    52     select CC_SUPPORT_FORTRAN
    53     select CC_SUPPORT_JAVA
    54     select CC_SUPPORT_ADA
    55     select CC_SUPPORT_OBJC
    56     select CC_SUPPORT_OBJCXX
    57 
    58 endchoice
    59 
    60 config CC_VERSION
    61     string
    62 
    63 config CC
    64     string
    65     default "gcc" if CC_GCC
    66 
    67 if CC_GCC
    68 source config/cc_gcc.in
    69 endif
    70 
    71 config CC_SUPPORT_CXX
    72     bool
    73 
    74 config CC_SUPPORT_FORTRAN
    75     bool
    76 
    77 config CC_SUPPORT_JAVA
    78     bool
    79 
    80 config CC_SUPPORT_ADA
    81     bool
    82 
    83 config CC_SUPPORT_OBJC
    84     bool
    85 
    86 config CC_SUPPORT_OBJCXX
    87     bool
    88 
    89 comment "Additionnal supported languages:"
    90 
    91 config CC_LANG_CXX
    92     bool
    93     prompt "C++"
    94     default n
    95     depends on CC_SUPPORT_CXX
    96     help
    97       Only select this if you know that your specific combination of
    98       compiler and its version does support this language.
    99 
   100 config CC_LANG_FORTRAN
   101     bool
   102     prompt "Fortran"
   103     default n
   104     depends on CC_SUPPORT_FORTRAN
   105     help
   106       Only select this if you know that your specific combination of
   107       compiler and its version does support this language.
   108 
   109 config CC_LANG_JAVA
   110     bool
   111     prompt "Java"
   112     default n
   113     depends on CC_SUPPORT_JAVA
   114     help
   115       Only select this if you know that your specific combination of
   116       compiler and its version does support this language.
   117 
   118 config CC_LANG_ADA
   119     bool
   120     prompt "ADA"
   121     default n
   122     depends on CC_SUPPORT_ADA
   123     help
   124       Only select this if you know that your specific combination of
   125       compiler and its version does support this language.
   126 
   127 config CC_LANG_OBJC
   128     bool
   129     prompt "Objective-C"
   130     default n
   131     depends on CC_SUPPORT_OBJC
   132     help
   133       Only select this if you know that your specific combination of
   134       compiler and its version does support this language.
   135 
   136 config CC_LANG_OBJCXX
   137     bool
   138     prompt "Objective-C++"
   139     default n
   140     depends on CC_SUPPORT_OBJCXX
   141     help
   142       Only select this if you know that your specific combination of
   143       compiler and its version does support this language.
   144 
   145 config CC_LANG_OTHERS
   146     string
   147     prompt "Other languages"
   148     default ""
   149     help
   150       Enter here a comma-separated list of languages that you know your compiler
   151       supports, besides those listed above.
   152 
   153       Eg. gcc-4.1+ has a toy programming language, treelang. As it is not usefull
   154       in real life, it is not available in the selection above.
   155 
   156 endmenu