#Change rustc output name with command line argument

8 messages · Page 1 of 1 (latest)

jovial loom
#

I aleary tried -o option, but my final file *.a didn't change, only *.d filename is changed

jovial loom
#

-o produce changed name.d and origin.a is not changed. I use crate type staticlib

jovial loom
#

but i want to change name in cli since i use cargo rustc --lib --crate-type staticlib -- --cfg 'test' to inject cfg

jovial loom
#

Oh I delete first message by mistake, first message was tried to change output filename in command line argument

tropic grail
#

You will probably have to run the rustc command by hand, cargo's going to really mess with anything you do