title: How to emit LLVM-IR from Cargo
body: <p>How can I get cargo to emit LLVM-IR instead of a binary for my project?  I know that you can use the <code>--emit=llvm-ir</code> flag in <code>rustc</code>, but I've read some Github issues that show it's impossible to pass arbitrary compiler flags to cargo.  </p>
  
  <p>Is there any way I can get cargo to emit LLVM-IR directly?</p>