complibs/ppl: build only C and C++ interfaces for PPL 1.11
authorAnthony Foiani <anthony.foiani@gmail.com>
Thu May 19 23:06:16 2011 +0200 (2011-05-19)
branch1.11
changeset 24644b844234d214
parent 2463 7f87237857a0
child 2465 5f98b7a90fbc
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)
scripts/build/companion_libs/ppl.sh
     1.1 --- a/scripts/build/companion_libs/ppl.sh	Thu May 19 23:05:32 2011 +0200
     1.2 +++ b/scripts/build/companion_libs/ppl.sh	Thu May 19 23:06:16 2011 +0200
     1.3 @@ -49,10 +49,10 @@
     1.4          --disable-ppl_lcdd                          \
     1.5          --disable-ppl_lpsol                         \
     1.6          --disable-shared                            \
     1.7 +        --enable-interfaces='c c++'                 \
     1.8          --enable-static
     1.9  
    1.10      # Maybe-options:
    1.11 -    # --enable-interfaces=...
    1.12      # --enable-optimization=speed  or sspeed (yes, with 2 's')
    1.13  
    1.14      CT_DoLog EXTRA "Building PPL"