summaryrefslogtreecommitdiffstats
path: root/gnu/gcc/PREPARE
blob: a9f7a11511f85d39eb9dad692339db2cf5ba76d8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
message "Note: C and C++ compilers are always built"
. $GRIMOIRE/config_query_multi.function
list_remove GCC_COMPILER c &&
list_remove GCC_COMPILER c++ &&
config_query_multi GCC_COMPILER "Select the additional compilers you want" \
                                none \
                                ada \
                                brig \
                                d \
                                fortran \
                                go \
                                jit \
                                objc \
                                obj-c++ \
                                all &&
list_remove GCC_COMPILER none    &&
if list_find "$GCC_COMPILER" "all" ; then
  list_remove GCC_COMPILER all   &&
  list_add GCC_COMPILER ada      &&
  list_add GCC_COMPILER brig     &&
  list_add GCC_COMPILER d        &&
  list_add GCC_COMPILER fortran  &&
  list_add GCC_COMPILER go       &&
  list_add GCC_COMPILER jit      &&
  list_add GCC_COMPILER objc     &&
  list_add GCC_COMPILER obj-c++
fi