-
Notifications
You must be signed in to change notification settings - Fork 455
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
Add support for thumbv4t-none-eabi target (arm-none-eabi
tool prefix)
#716
Comments
I don't quite follow. If Either way, I [for one] would argue that deriving the prefix from the linker name would be a better option, as in #685. Unfortunately, as it stands now, the referred #685 wouldn't do the trick for the target in question. Because the linker name is pre-compiled for the target in question and is not available for interrogation. (Making it available is suggested in #693.) |
Environment variables are terribly fickle and the crate documentation doesn't mention CROSS_COMPILE at all in any obvious place. |
Not if you set it in the build script :-) With |
I don't think using It just seems strange to me personally to only expose a feature as an environment variable, unless it's the only reasonable way (i.e. |
Well, I didn't actually mean to say that it is. It's just something that is actually usable today. That's all :-) |
Just in case to clarify/summarize. The subject is "add support for thumbv4t-none-eabi target." My position (expressed in #693) is that we would be better off if rustc/cargo provided enough information to derive the toolchain prefix. As opposed to solving it in cc-rs on per-target, or even per-build-script basis (as implied here). That's the key. As for the reference to |
Currently need to to pass
.compiler("arm-none-eabi-gcc").archiver("arm-none-eabi-ar")
to my Build as cc doesn't know thethumbv4t-none-eabi
target, which uses thearm-none-eabi-
tool prefix.On that note, it'd be nice to be able to specify the prefix as a method on Build, rather than through the
CROSS_COMPILE
environment variable.The text was updated successfully, but these errors were encountered: