Skip to content

‎test/BoostBuild.py default jobs 🐞 #556

@paolopas

Description

@paolopas

During work on #543, and specifically during changes to test/semaphore.py (see commit 0b0f44e), it emerged that the default job number application introduced with commit 4348970 isn't working as expected.

This is due to the default cardinality of Lyra options (0, 1) which means that the first value seen for an option is the actual one. So the workaround b2 -jN -j1 does not produce the value 1 for the number of jobs.

In BoostBuild.run_build_system you should take into account that the option can be provided before, i.e. in Tester.__init__, and therefore you should check its presence also in self.program[1:]

In engine/jam.cpp the assignment globs.jobs = val; is superfluous and should be eliminated.

Note

If you see a 🐞 in the issue heading it's because my browser doesn't support label management. René please put the label you think is appropriate.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions