forked from bitcoin/bitcoin
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
build: target aarch64 over armv7, add rudimentary support for Rust components in build system, update to macOS SDK 15.0 (from Xcode 16.0) #7109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
kwvg
wants to merge
24
commits into
dashpay:develop
Choose a base branch
from
kwvg:rust_build
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+2,168
−110
Open
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
cd4c2c7
build: make list of cross compilers more explicit, switch to ARMv8
kwvg cc8e372
build: add Rust to CI docker image, cross-compile targets
kwvg feafe7c
build: add minimal stub crate to validate Rust integration
kwvg 117fd03
lint: exclude `rust/` from linters
kwvg 0356fd7
build: introduce barebones Autotools integration with Rust
kwvg be9638b
build: propagate SDK version to Rust compiler
kwvg 2792cf1
build: propagate macOS SDK path to Rust compiler
kwvg 96e71e2
build: use debug profile for Rust components if `--enable-debug` set
kwvg 384d185
build: propagate target build variables to Rust components
kwvg ed40ae3
build: propagate host build variables to Rust components
kwvg 0ecbe28
debug: Add log that validates successful FFI invocation at init
kwvg fb3de29
depends: integrate Rust and `cxxbridge` into depends
kwvg c4597b9
build: drop Rust from CI docker image
kwvg 134e4b4
depends: add support for vendored crates for offline builds
kwvg a610dca
fix: avoid triggering `rustup` if building from depends
kwvg c846ab7
fix: workaround `Directory renamed before its status could be extracted`
kwvg 6c182d9
fix: copy native binaries for access within Guix context
kwvg 4646a0c
fix: patch loader paths to Guix store locations
kwvg d5690d4
refactor: split rust runner (builder) and standard library (cross)
kwvg 4c28b28
build: switch to Rust 1.85.1, use musl stdlib to avoid Guix glibc issues
kwvg 7e7a3f3
build: update to macOS 15.2 SDK from Xcode 16.0
kwvg 28c81da
build: unset `C{,PLUS}_INCLUDE_PATH` to avoid cross-toolchain conflict
kwvg d7fe95f
fix: include resource directory in search path for include resolution
kwvg 415bcf3
fix: resolve issues with dist builds
kwvg File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| # Linux | ||
| [target.aarch64-unknown-linux-musl] | ||
| linker = "aarch64-linux-gnu-gcc" | ||
|
|
||
| [target.armv7-unknown-linux-musleabihf] | ||
| linker = "arm-linux-gnueabihf-gcc" | ||
|
|
||
| [target.powerpc64le-unknown-linux-musl] | ||
| linker = "powerpc64le-linux-gnu-gcc" | ||
|
|
||
| [target.riscv64gc-unknown-linux-musl] | ||
| linker = "riscv64-linux-gnu-gcc" | ||
|
|
||
| [target.x86_64-unknown-linux-musl] | ||
| linker = "x86-64-linux-gnu-gcc" | ||
|
|
||
| # Windows | ||
| [target.x86_64-pc-windows-gnu] | ||
| linker = "x86_64-w64-mingw32-gcc" | ||
|
|
||
| # macOS | ||
| # [target.aarch64-apple-darwin] | ||
| # linker = "aarch64-apple-darwin-gcc" | ||
|
|
||
| # [target.x86_64-apple-darwin] | ||
| # linker = "x86_64-apple-darwin-gcc" | ||
|
|
||
| [source.crates-io] | ||
| replace-with = "vendored-sources" | ||
|
|
||
| [source.vendored-sources] | ||
| # The directory for this source is set to RUST_VENDORED_SOURCES by rust/Makefile.am |
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overly broad unanchored ignore patterns (
debug,target,gen).debug(line 181): Cargo never creates a standalone top-leveldebug/directory (debug artefacts live undertarget/debug/), so this entry is both redundant and risks silently hiding anydebug/directory that might appear elsewhere in the repo.target(line 182): Without a leading/, this matches everytarget/directory in the entire tree (e.g.src/target/,contrib/target/, etc.). Standard Rust.gitignoretemplates use the rooted/targetform.gen(line 200): Bare name with no leading/and no glob qualifier – would silently hide any file or directory namedgenanywhere in the repository.🔧 Suggested tightening
🤖 Prompt for AI Agents