In case someone wants to use Visual-Studio-Code tasks to compile nim code with 
vcc, it seems to work with this:

  1. Create a vccnim.cmd where your nim.exe is.
  2. Use this line in vccnim.cmd (adjust path to match your installation):



> @call "C:\Program Files (x86)\Microsoft Visual 
> Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"
> 
> nim.exe %*

3\. Replace nim.exe in tasks.json with vccnim.cmd

I've read that %* doesn't handle quoted parameters, so if someone has a better 
solution, please tell us.

Reply via email to