-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Cross compilation + #[phase(syntax)] = sadness #12102
Comments
Loadable syntax extensions don't work when cross compiling (see rust-lang#12102), so the fourcc tests all need to be ignored. They're valuable tests, so they shouldn't be outright ignored, so they're now flagged with ignore-cross-compile
Loadable syntax extensions don't work when cross compiling (see #12102), so the fourcc tests all need to be ignored. They're valuable tests, so they shouldn't be outright ignored, so they're now flagged with ignore-cross-compile
These tests are failing on the snap builders, and are now tagged with a FIXME. cc rust-lang#12102
Another problem I just uncovered: Let's say that I have my own syntax extension inside of directory The new SVH infrastructure has detected this bug because the SVH is different between target/host crates. This could be fixed with a combination of #10814 and perhaps some more clever infrastructure for loading syntax extensions with a different target architecture. |
These tests are failing on the snap builders, and are now tagged with a FIXME. cc #12102
This allows the use of syntax extensions when cross-compiling (fixing #12102). It does this by encoding the target triple in the crate metadata and checking it when searching for files. Currently the crate triple must match the host triple when there is a macro_registrar_fn, it must match the target triple when linking, and can match either when only macro_rules! macros are used. due to carelessness, this is pretty much a duplicate of #13450.
This was fixed, right? |
This was indeed, #13584 fixed it. |
style: rename crates to kebab-case Ref: rust-lang#12102 I updated all the folders names as well as the crates names in each `Cargo.toml` to use kebab-case. This is my first ra PR. In case I missed something, I am ready/available to fix it until it is ready to merge. Thank you.
I believe that when you specify a crate with
#[phase(syntax)]
, that should resolve a crate for the host architecture, not the target architecture. This means that if I'm doing a cross-compile, I'm going to attempt todlopen
libraries for the target architecture, which will probably fail if I'm cross compiling.cc @sfackler
The text was updated successfully, but these errors were encountered: