Skip to content

Instantly share code, notes, and snippets.

@Aeva
Last active September 13, 2019 05:45
Show Gist options
  • Save Aeva/457884584b88d299acb0b485eaf29c6b to your computer and use it in GitHub Desktop.
Save Aeva/457884584b88d299acb0b485eaf29c6b to your computer and use it in GitHub Desktop.
calling cl.exe from within wsl
echo 'call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat">NUL' > /mnt/c/Users/aeva/cl.bat
echo '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.22.27905\bin\Hostx64\x64\cl.exe" %*' >> /mnt/c/Users/aeva/cl.bat
alias cl="cmd.exe /q /c C:/Users/aeva/cl.bat"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment