diff options
author | Efraim Flashner <efraim@flashner.co.il> | 2023-11-20 12:21:52 +0200 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2023-11-28 07:59:43 +0200 |
commit | e604972d9c697302691aeb22e9c50c933a1a3c72 (patch) | |
tree | 5bd17c1b429dd19e34027fab5dcd136f377d7a23 /etc/completion | |
parent | 584bd0bb3d88a69933b3d4e4974564a91adc6816 (diff) | |
download | guix-e604972d9c697302691aeb22e9c50c933a1a3c72.tar guix-e604972d9c697302691aeb22e9c50c933a1a3c72.tar.gz |
build/cargo-build-system: Enable cross-compiling.
* guix/build-system/cargo.scm (default-rust): Accept an argument.
(default-rust-sysroot, cargo-cross-build): New procedures.
(lower): Accept a rust-sysroot.
[private-kewords]: Add rust-sysroot. Remove target if cross-compiling.
[bag]: Allow cross-compiling. In host-inputs only have inputs when
cross-compiling, move crate sources to here, remove standard-packages.
In build-inputs add the inputs when not cross-compiling, add the
standard-cross-packages when cross-compiling, add the standard-packages
to here. Add target-inputs with the standard-cross-packages and
rust-sysroot when cross-compiling.
* guix/build/cargo-build-system.scm (configure): Accept target argument.
When cross-compiling set some environment variables. Adjust the
.config/cargo.toml to have configure options for cross-compiling.
Change-Id: I388d1e1f48943e45ff01f55af8efc0746f383b4a
Diffstat (limited to 'etc/completion')
0 files changed, 0 insertions, 0 deletions