Open
Description
While trying the work-in-progress of AVR-enabled Rust, I am currently unable to actually link programs. Instead, I have to stop at an object and do things by hand from there.
I'd still like to be able to use Cargo to handle all the dependency work, but there's no way to disable the existing --emit=dep-info,link
argument. I can add additional emit
options though:
$ cargo rustc --verbose --target=avr-atmel-none --release -- --emit=obj
Compiling core v0.1.0 (file:///Projects/arduino/rust-no-core/blink/libcore)
Running `rustc /Projects/avr-rust/src/libcore/lib.rs --crate-name core --crate-type lib -C opt-level=3 --emit=obj --out-dir /Projects/arduino/rust-no-core/blink/libcore/target/avr-atmel-none/release --emit=dep-info,link --target avr-atmel-none -L dependency=/Projects/arduino/rust-no-core/blink/libcore/target/avr-atmel-none/release -L dependency=/Projects/arduino/rust-no-core/blink/libcore/target/avr-atmel-none/release/deps
Of note is that two options are supplied: --emit=obj [...] --emit=dep-info,link
.
I assume that dep-info
is needed for other workings, but it's be nice to be able to disable the link
.