0

I have a project written in the Rust language in CLion that I want to be compiled in the Windows Subsystem for Linux and then run there. I'm not sure at all that this is possible.

The poster of this question apparently has it working, but this intellij-rust issue says it isn't possible. Someone in the comments wrote a workaround that doesn't work for me.

How can I setup CLion to compile Rust code in the Windows Subsystem for Linux and run it there when I click on run in CLion?

I don't care about cross-compilation; I just want to be able to continue developing my application. In the end, I'll probably compile it in a clean Docker container on the machine where it will be executed.

Shepmaster
  • 388,571
  • 95
  • 1,107
  • 1,366
usbpc102
  • 1,137
  • 13
  • 25
  • There is value in being precise here. By "I don't care about cross-compilation" do you mean "I don't care where it's *compiled*, as long as it *runs* under WSL", or "I don't care where it *runs*, as long as it's *compiled* under WSL", or "I don't care if it runs anywhere else, as long as it *is compiled and runs* under WSL"? I'm guessing the last thing. – trent Aug 07 '19 at 13:14
  • 1
    @trentcl The first one actually. "I don't care where it's compiled, as long as it runs under WSL" but with the extra qualifier that I want to be able to just click "Run" in CLion and it should compile "somewhere" and run in WSL. Since I also installed required C libraries in WSL it seems to me the best way would be the "compile and run in WSL" way. – usbpc102 Aug 07 '19 at 13:20

0 Answers0