-
-
Notifications
You must be signed in to change notification settings - Fork 235
Description
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.