I am trying to build a rust project against the x86_64-apple-ios-macabi target. I know the target is tier 3, and as such, need to build my own std
. With nightly cargo and toolchain, I am able to do that with the -Z build-std
flag.
However, it turns out rustc
has a bug when trying to build binaries for x86_64-apple-ios-macabi
(https://github.com/rust-lang/rust/issues/80202). i have a custom rustc
that fixes the issue (https://github.com/rust-lang/rust/pull/80215). However, when I try to use that rustc, I get an error stating that the std
crate could not be found.
I specifically have done this:
- built
rustc
with./x.py build -i
with thetargets
entry set inconfig.toml
to include both my host triple (x86_64-apple-darwin) and the catalyst triple (x86_64-apple-ios-macabi) and thebuild-stage
entry set to2
- linked this build to rustup with
rustup toolchain link stage2 build/x86_64-apple-darwin/stage2
- used rustup override to use my custom rustc as the compiler in my sample app
- setup Xargo.toml with:
[target.x86_64-apple-ios-macabi.dependencies]
std = {path = "../rust/library/std"}
and tried building with xargo build --target x86_64-apple-ios-macabi $*
however, i get the following error:
error[E0463]: can't find crate for `std`
|
= note: the `x86_64-apple-ios-macabi` target may not be installed
when that didn't work, i tried building rustc with: ./x.py -i --target x86_64-apple-ios-macabi --stage 2 compiler/rustc
and did the rest as well, but i still got the same error.
how can i get my sample app to see my custom built std
crate?