summaryrefslogtreecommitdiff
path: root/recipes/moltenvk.recipe
diff options
context:
space:
mode:
authorL. E. Segovia <amy@centricular.com>2024-02-03 12:21:54 +0000
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>2024-02-06 13:23:17 +0000
commit88cf8d465437687271aa1fb3d93e51fe12de3536 (patch)
tree876753b634200cb84f8150877a80abb1134cbcf9 /recipes/moltenvk.recipe
parent30abd49b11704bac3a4a6027552280a969f5a4d0 (diff)
rust: Fix evasion of the Rust multicore job handler when using -j1
When using -j1 in a suitably small Mac machine, determine_num_cargo_jobs() returns 1, but also self.config.num_of_cpus returns none. Therefore, while gst-plugins-rs gets restricted in its number of parallel recipe builds appropriately, the allow_parallel_build never takes effect and cargo proceeds to build at max core speed. This commit fixes that by ensuring the num_of_cpus is capped by the number of cargo jobs, and otherwise returns 1, simulating what happens with GNU Make when no parallel parameter is specified. Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1343>
Diffstat (limited to 'recipes/moltenvk.recipe')
0 files changed, 0 insertions, 0 deletions