mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-16 15:21:24 +01:00
Turns out fenix.packages.aarch64-linux.targets.x86_64-*.minimal.rustc is an x86_64 compiler. The only component that you actually need to pull from 'targets' for cross compilation is rust-std. Because x86_64-unknown-linux-gnu is first in the target list, we were getting x86 rustc and cargo binaries, making it impossible to compile grapevine on an aarch64 host. We were also missing aarch64-unknown-linux-gnu in the targets list, which is used by the default package on a aarch64 host.
22 lines
554 B
TOML
22 lines
554 B
TOML
# This is the authoritiative configuration of this project's Rust toolchain.
|
|
#
|
|
# Other files that need upkeep when this changes:
|
|
#
|
|
# * `Cargo.toml`
|
|
# * `flake.nix`
|
|
#
|
|
# Search in those files for `rust-toolchain.toml` to find the relevant places.
|
|
# If you're having trouble making the relevant changes, bug a maintainer.
|
|
|
|
[toolchain]
|
|
channel = "1.84.0"
|
|
components = [
|
|
# For rust-analyzer
|
|
"rust-src",
|
|
]
|
|
targets = [
|
|
"x86_64-unknown-linux-gnu",
|
|
"x86_64-unknown-linux-musl",
|
|
"aarch64-unknown-linux-gnu",
|
|
"aarch64-unknown-linux-musl",
|
|
]
|