-
Notifications
You must be signed in to change notification settings - Fork 14
Support AVR as the default target #8
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
Comments
So I've been trying to look into how the default target is set (I'm trying to get the core library building – #4). It seems like the default |
If I recall correctly, if we pass The problem with this is that |
avr-none
as the default targetavr-atmel-none
as the default target
We don't want to modify the Makefiles to ignore the host and generate AVR bindings - we want to add support to Rust so that we can call
|
This is currently blocked by AVR-LLVM issue #149 |
I would prefer that, instead, the default target is the host, and that --target=avr-atmel-none is passed to cargo and rustc to build for AVR. Many crates need the host target in order to run their |
I have good news :) I am currently in the (long,slow) process of merging AVR-LLVM directly into the official LLVM repository. Once that is completed, Rust will simply have to update LLVM and it will be able to be used. With regards to this issue, the only reason we can't use The AVR-LLVM migration process will take a while, and so I plan on working on fixing AVR-LLVM issue 149 once that is completed. |
avr-atmel-none
as the default target
@dylanmckay Hi! I was randomly looking for llvm avr/arduino support when I came here. Taht is awesome! Any status update as of today (2018-08-23)? |
We need to get |
@dylanmckay I'm not sure that there's much of a point to this. Rust defaults to the host system, and I'm 99.9999% sure that rustc will never run on AVR. Since our goal is to merge into upstream Rust, we'd never want to have such a behavior. |
Good point, I hadn't though of that - changing the default target to AVR could only ever be relevant in a rustc fork. |
Set the default target to
avr-unknown-unknown
so that by default we attempt to build for AVR.Currently this is blocked by not being able to compile
compiler-rt
andlibcore
and such.The text was updated successfully, but these errors were encountered: