Skip to content

feat(monero-sys): build parallelism configurable#1132

Open
binarybaron wants to merge 1 commit into
masterfrom
monero-sys-configurable-build-jobs
Open

feat(monero-sys): build parallelism configurable#1132
binarybaron wants to merge 1 commit into
masterfrom
monero-sys-configurable-build-jobs

Conversation

@binarybaron

@binarybaron binarybaron commented Jun 22, 2026

Copy link
Copy Markdown

No description provided.

…_BUILD_JOBS

The Monero C++ compile in build.rs was hardcoded to -j1 in CI/Docker
(and all cores locally) with no way to tune it. Monero's translation
units are RAM-hungry, so serial is a safe default on memory-constrained
runners, but builders with enough memory have no escape hatch and pay
for a fully serial compile.

Add an optional MONERO_BUILD_JOBS env var that overrides the default
job count, and plumb it through swap-asb/Dockerfile as a build arg so
the image build can be tuned with `--build-arg MONERO_BUILD_JOBS=N`.
Behavior is unchanged when the variable is unset.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@binarybaron binarybaron changed the title monero-sys: make Monero C++ build parallelism configurable via MONERO_BUILD_JOBS feat(monero-sys): build parallelism configurable Jun 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant