fix(build): enable parallel openssl compilation - #103
Merged
Conversation
- 透传 GNU Make jobserver 到 OpenSSL 递归构建 - 保留 SOURCE_DATE_EPOCH 以维持可复现构建 - Sophon BM1688 容器实测并发峰值为 27 Signed-off-by: Fernandez <yuanhaon81@gmail.com>
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.
Summary
Fix OpenSSL cross-build parallelism by preserving GNU Make's jobserver across the CMake ExternalProject boundary.
Related issue
N/A — focused single-file build fix.
Root cause
The OpenSSL build command was wrapped with
cmake -E env. The outer make retained the textual-j36 --jobserver-authflags, but the wrapper closed the jobserver file descriptors before OpenSSL recursively invoked_build_sw. GNU Make therefore emittedjobserver unavailableand forced the actual compilation to-j1.Scope
In scope
SOURCE_DATE_EPOCHfor deterministic OpenSSL artifacts.Out of scope
Risk tags
Type of change
Area
Candidate identity
10d9517214388f1d172135a21728fbb28f26e604c621ea261f2d64f1eee53fbb578620442b0f7d4251986133df194b399085ae4f3d035094e3fc511eN/Ada85b555cd97aa3242abd05c013ca9d72b9936bb6465d4bf3cee81c60cfa162aThe candidate was not amended, rebased, or merged after collecting the candidate-bound evidence below.
Verification
Parent baseline
Candidate checks
Risk-based evidence
Documentation impact
Compatibility and deployment impact
Third-party code and assets
Security and release checklist
Signed-off-by:according to the DCO-style requirement inCONTRIBUTING.md.CONTRIBUTING.mdandCODE_OF_CONDUCT.md.Acceptance and cleanup
N/AN/AN/AcompletecleanNotes for reviewers
Using literal
$(MAKE)marks the generated ExternalProject recipe as recursive, so CMake 3.22 keeps GNU Make's jobserver descriptors open. PassingSOURCE_DATE_EPOCHas a make command-line variable preserves the reproducible-build environment without adding a wrapper process.