Using nightly channel for builds #1562
-
Hello 👋, so I am trying to cross-compile for a Tier 3 target and need to use a nightly channel because of this. Looking at what
Running my command with the
For whatever reason,
I imagine I am missing something simple, but have had no luck at finding out how to make Cross version
Notes
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
What you should do then is not install cargo in the image. I think you could also use |
Beta Was this translation helpful? Give feedback.
cross
is designed to use toolchains installed on the host machine, not in the image. We add the path to a mounted toolchain intoPATH
. I suspect that the reason this doesnt work here is because the cargo added by the rust image is prioritized.What you should do then is not install cargo in the image. I think you could also use
RUSTUP_TOOLCHAIN=<toolchain> cross ...
and also set it inCross.toml
viabuild.env.passthrough = ["RUSTUP_TOOLCHAIN=<toolchain>"]