CLearn/.vscode/tasks.json

38 lines
899 B
JSON

{
"version": "2.0.0",
"tasks": [
{
"label": "build",
"type": "shell",
"command": "clang",
"args": [
"-target",
"x86_64-pc-windows-gnu",
"-g",
"${file}",
"-o",
"${fileDirname}\\${fileBasenameNoExtension}.exe"
],
"options": {
"cwd": "${workspaceFolder}"
},
"problemMatcher": {
"owner": "cpp",
"fileLocation": ["relative", "${workspaceFolder}"],
"pattern": {
"regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$",
"file": 1,
"line": 2,
"column": 3,
"severity": 4,
"message": 5
}
},
"group": {
"kind": "build",
"isDefault": true
},
"detail": "Compile C source file"
}
]
}