Skip to content

build in paralllel #2

@rhaas80

Description

@rhaas80

Boost currently builds during CST stage, which is serial in make. We should thus be able to steal make's processes and build in parallel.

GNU make always sets MAKEFLAGS to <otheroptions> -j<NN [--jobserver> so one can parse the number of jobs to use using something like (even if the user gave --jobs 42 or --jobs:

JOBS=$(echo "$MAKEFLAGS" | perl -n -e 'm/.*(-j[0-9]+)/ and print $1')

then pass $JOBS to b2:

b2 $JOBS

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions