Repository navigation
Make bundled codec build parallelism configurable - #202
Merged
Merged
Conversation
Contributor
|
I don't recommend limiting parallel builds to --parallel 4, as this would restrict build performance on systems with more CPU cores. I suggest omitting the job count so that CMake can automatically use all available CPU threads. |
danoli3
marked this pull request as ready for review
October 25, 2026 04:13
Owner
Author
|
Fixed with CPU detection or CMAKE_BUILD_PARALLEL_LEVEL |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bundled HEIF/AVIF and JPEG XL dependency builds currently hard-code
--parallel 2, so raising the top-level build's parallel limit cannot increase the workers used inside a dependency. Select nested-build parallelism automatically at build time instead.The default uses the standard
CMAKE_BUILD_PARALLEL_LEVELenvironment variable when set, otherwise CMake'sProcessorCount()detects the available logical CPUs (with a one-job fallback).FREEIMAGE_CODEC_BUILD_JOBSdefaults to empty/automatic; an explicit positive integer overrides the environment for nested codec builds only. Environment changes take effect without reconfiguration.Independent dependencies retain their existing ExternalProject dependencies. The README explains the top-level and per-dependency settings and removes the fixed four-job example. Bundled-codec CI detects each runner's CPU count and uses the standard environment variable for the main build and its dependencies. These limits apply per build, rather than forming one shared job pool.
Validation:
Fixes #201.