#Change rustc output name with command line argument
8 messages · Page 1 of 1 (latest)
-o produce changed name.d and origin.a is not changed. I use crate type staticlib
In cargo you just set the name https://doc.rust-lang.org/cargo/reference/cargo-targets.html#configuring-a-target
but i want to change name in cli since i use cargo rustc --lib --crate-type staticlib -- --cfg 'test' to inject cfg
Oh I delete first message by mistake, first message was tried to change output filename in command line argument
You will probably have to run the rustc command by hand, cargo's going to really mess with anything you do