agrawal-d / cph

Makes judging, compiling, and downloading problems for competitive programming easy.
https://agrawal-d.github.io/cph
GNU General Public License v3.0
816 stars 137 forks source link

Question regarding MSVC Support #490

Open saadam1n opened 1 month ago

saadam1n commented 1 month ago

Extension Version: N/A VS Code Version: N/A Browser Version: N/A Operating System: N/A

Is MSVC currently supported? I had issues getting it to work, primarily CPH inserting G++-only flags which caused MSVC to break.

YuiHrsw commented 4 days ago

You can change the -o flag to /Fe: in compiler.ts and build your own extension. To use it, set the c++ command to cl and launch VS Code from Visual Studio command prompt.