config/debug/gdb.in
author Anthony Foiani <anthony.foiani@gmail.com>
Thu May 19 23:06:16 2011 +0200 (2011-05-19)
branch1.11
changeset 2464 4b844234d214
parent 2418 f530baf5098e
child 2444 896cb0d36c1a
permissions -rw-r--r--
complibs/ppl: build only C and C++ interfaces for PPL

By default, PPL wants to build interfaces for any of a variety of
langauges it finds on the local host (python, java, possibly perl, also
more esoteric languages such as ocaml and prolog).

These extra interfaces can double the compile time for the library. For
single-process builds, I found a savings of more than 40%:

default / j1: 716s total, 143.2s avg, 0.52s stdev
just_c / j1: 406s total, 81.2s avg, 0.33s stdev
just_c_cpp / j1: 413s total, 82.6s avg, 0.22s stdev

And for multi-process builds, it approached 50%:

default / j4: 625s total, 125.0s avg, 0.57s stdev
just_c / j4: 338s total, 67.6s avg, 1.25s stdev
just_c_cpp / j4: 327s total, 65.4s avg, 0.36s stdev

Since the PPL we build within ct-ng is only used by GCC, we only need to
build the C and C++ interfaces.

Signed-Off-By: Anthony Foiani <anthony.foiani@gmail.com>
(transplanted from ec30b191f0e3fe9bc73199f0bcb8d789db17aa92)
yann@96
     1
# GDB menu
yann@96
     2
yann@916
     3
config DEBUG_gdb
yann@96
     4
    help
yann@96
     5
      Enable gdb for the target
yann@96
     6
yann@1849
     7
source "config/debug/gdb.in.cross"
yann@1849
     8
source "config/debug/gdb.in.native"
yann@1849
     9
source "config/debug/gdb.in.gdbserver"
yann@1269
    10
yann@2417
    11
if GDB_CROSS || GDB_NATIVE || GDB_GDBSERVER
yann@2417
    12
yann@2417
    13
comment "gdb version"
yann@2417
    14
yann@2417
    15
config DEBUG_GDB_SHOW_LINARO
yann@2417
    16
    bool
yann@2417
    17
    prompt "Show Linaro versions (EXPERIMENTAL)"
yann@2417
    18
    depends on EXPERIMENTAL
yann@2417
    19
    help
yann@2417
    20
      Linaro is maintaining some advanced/more stable/experimental versions
yann@2417
    21
      of gdb, especially for the ARM architecture.
yann@2417
    22
yann@2417
    23
      Those versions have not been blessed by the gdb community (nor have they
yann@2417
    24
      been cursed either!), but they look to be pretty much stable, and even
yann@2417
    25
      more stable than the upstream versions. YMMV...
yann@2417
    26
yann@2417
    27
      If you do not know what this Linaro stuff is, then simply say 'n' here,
yann@2417
    28
      and rest in peace. OTOH, if you know what you are doing, you will be
yann@2417
    29
      able to use and enjoy :-) the Linaro versions by saying 'y' here.
yann@2417
    30
yann@2417
    31
      Linaro: http://www.linaro.org/
yann@2417
    32
yann@96
    33
choice
yann@96
    34
    bool
yann@96
    35
    prompt "gdb version"
yann@1535
    36
# Don't remove next line
yann@1535
    37
# CT_INSERT_VERSION_BELOW
yann@1534
    38
yann@2418
    39
config GDB_V_linaro_7_2_2011_04_0
yann@2303
    40
    bool
yann@2418
    41
    prompt "linaro-7.2-2011.04-0 (EXPERIMENTAL)"
yann@2417
    42
    depends on DEBUG_GDB_SHOW_LINARO
yann@2303
    43
    select GDB_7_0_or_later
yann@2303
    44
jon@2168
    45
config GDB_V_7_2
jon@2168
    46
    bool
jon@2168
    47
    prompt "7.2 (EXPERIMENTAL)"
jon@2168
    48
    depends on EXPERIMENTAL
jon@2168
    49
    select GDB_7_0_or_later
jon@2168
    50
yann@1874
    51
config GDB_V_7_1
yann@1874
    52
    bool
yann@1874
    53
    prompt "7.1 (EXPERIMENTAL)"
yann@1874
    54
    depends on EXPERIMENTAL
yann@1874
    55
    select GDB_7_0_or_later
yann@1874
    56
jocke@1705
    57
config GDB_V_7_0_1
jocke@1705
    58
    bool
jocke@1705
    59
    prompt "7.0.1 (EXPERIMENTAL)"
jocke@1705
    60
    depends on EXPERIMENTAL
yann@1852
    61
    select GDB_7_0_or_later
jocke@1705
    62
yann@1612
    63
config GDB_V_7_0
yann@1612
    64
    bool
yann@1612
    65
    prompt "7.0 (EXPERIMENTAL)"
yann@1612
    66
    depends on EXPERIMENTAL
yann@1852
    67
    select GDB_7_0_or_later
yann@1612
    68
yann@1534
    69
config GDB_V_6_8
yann@1534
    70
    bool
yann@1534
    71
    prompt "6.8"
yann@1534
    72
yann@96
    73
endchoice
yann@96
    74
yann@1852
    75
config GDB_7_0_or_later
yann@1852
    76
    bool
yann@1852
    77
yann@96
    78
config GDB_VERSION
yann@96
    79
    string
yann@1535
    80
# Don't remove next line
yann@1535
    81
# CT_INSERT_VERSION_STRING_BELOW
yann@2421
    82
    default "linaro-7.2-2011.04-0" if GDB_V_linaro_7_2_2011_04_0
jon@2168
    83
    default "7.2" if GDB_V_7_2
yann@1874
    84
    default "7.1" if GDB_V_7_1
jocke@1705
    85
    default "7.0.1" if GDB_V_7_0_1
yann@1612
    86
    default "7.0" if GDB_V_7_0
yann@1534
    87
    default "6.8" if GDB_V_6_8
yann@2417
    88
yann@2417
    89
endif