Last active
July 9, 2022 15:47
-
-
Save Roger-WIN/8114dec3f014af5b931e2672bfa5b776 to your computer and use it in GitHub Desktop.
Build C++ in VS Code using Clang from MSYS2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "tasks": [ | |
| { | |
| "type": "cppbuild", | |
| "label": "C/C++: clang++.exe build active file", | |
| "command": "C:/Program Files/MSYS2/mingw64/bin/clang++.exe", | |
| "args": [ | |
| "-fdiagnostics-color=always", | |
| "-g", | |
| "${workspaceFolder}/*.cpp", | |
| "-o", | |
| "${fileDirname}/${fileBasenameNoExtension}.exe", | |
| "-Wall", | |
| "-std=c++17" | |
| ], | |
| "options": { | |
| "cwd": "C:/Program Files/MSYS2/mingw64/bin" | |
| }, | |
| "problemMatcher": [ | |
| "$gcc" | |
| ], | |
| "group": { | |
| "kind": "build", | |
| "isDefault": true | |
| }, | |
| "presentation": { | |
| "reveal": "silent", | |
| "showReuseMessage": false, | |
| "clear": true | |
| }, | |
| "detail": "Task generated by Debugger." | |
| } | |
| ], | |
| "version": "2.0.0" | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment