-
Notifications
You must be signed in to change notification settings - Fork 13k
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
FRC target support #42063
FRC target support #42063
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @arielb1 (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
Given that the control system has a habit of changing every few years, might make sense to expand the |
Agreed, I've added the platform name and year of release. Or do you mean changing the whole triple? Right now I'm just matching the triple that the NI-provided toolchain uses. |
Thanks for the PR @connorworley! We'll check in regularly to make sure @arielb1 or another reviewer gets to this soon. |
I don't think rust is in the habit of adding vendored targets like this. Would adding a neutral armv7-unknown-linux-gnueabi target be sufficient for your needs? |
Thanks for the PR @connorworley! As mentioned by @parched though we tend to add more generalized platforms to the compiler before branching into the specialized ones. We don't currently really have a policy one way or the other about this, it's mostly just gut feelings so far. Out of curiosity is there a more general target that could be added? Or are custom target specs not sufficient for your use case maybe? |
I could get away with using custom target specs, but the ultimate goal is for the high school students I work with to be able to easily deploy rust code for the roboRIO. In that regard, I think getting this target upstreamed would make it the easiest for them. |
@alexcrichton are we going to be including this target? Should this be discussed in one of the teams? |
Looks like this is just a specific cpu & features. Given that, it seems like naming it for the cpu selection & fpu options might be more appropriate (there isn't anything really FRC specific about the target, others with similar cpus could use it). Is the need here just for better optimization compared to using one of the other |
So after some more testing I have a better idea of what's going on, and I think I can get away with just using |
This PR adds support for target platform used in the FIRST Robotics Competition.