2020-09-26 11:38:38 +00:00
|
|
|
{
|
|
|
|
"version": "2.0.0",
|
|
|
|
"tasks": [
|
|
|
|
{
|
|
|
|
"label": "build",
|
|
|
|
"type": "shell",
|
|
|
|
"windows": {
|
|
|
|
"command": "g++",
|
|
|
|
"args": [
|
|
|
|
"-g",
|
|
|
|
"\"${file}\"",
|
|
|
|
"-o",
|
2021-07-01 13:15:09 +00:00
|
|
|
"\"${fileDirname}\\${fileBasenameNoExtension}.exe\""
|
2020-09-26 11:38:38 +00:00
|
|
|
]
|
|
|
|
},
|
2020-10-04 07:26:53 +00:00
|
|
|
"linux": {
|
|
|
|
"command": "/usr/bin/g++",
|
|
|
|
"args": [
|
|
|
|
"-g",
|
|
|
|
"\"${file}\"",
|
|
|
|
"-o",
|
2021-07-01 13:15:09 +00:00
|
|
|
"\"${fileDirname}/${fileBasenameNoExtension}.exe\""
|
2020-10-04 07:26:53 +00:00
|
|
|
]
|
|
|
|
},
|
2020-09-26 11:38:38 +00:00
|
|
|
"problemMatcher": {
|
|
|
|
"owner": "cpp",
|
|
|
|
"fileLocation": [
|
|
|
|
"relative",
|
2020-10-04 07:26:53 +00:00
|
|
|
"."
|
2020-09-26 11:38:38 +00:00
|
|
|
],
|
|
|
|
"pattern": {
|
|
|
|
"regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$",
|
|
|
|
"file": 1,
|
|
|
|
"line": 2,
|
|
|
|
"column": 3,
|
|
|
|
"severity": 4,
|
|
|
|
"message": 5
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"group": {
|
|
|
|
"kind": "build",
|
|
|
|
"isDefault": true
|
|
|
|
},
|
|
|
|
"presentation": {
|
|
|
|
"echo": true,
|
|
|
|
"reveal": "always",
|
|
|
|
"focus": false,
|
2020-10-04 07:26:53 +00:00
|
|
|
"panel": "shared"
|
2020-09-26 11:38:38 +00:00
|
|
|
}
|
|
|
|
}
|
2020-10-04 07:26:53 +00:00
|
|
|
// ,
|
|
|
|
// {
|
|
|
|
// "type": "shell",
|
|
|
|
// "label": "C/C++: g++ build active file",
|
|
|
|
// "command": "/usr/bin/g++",
|
|
|
|
// "args": [
|
|
|
|
// "-g",
|
|
|
|
// "${file}",
|
|
|
|
// "-o",
|
|
|
|
// "${fileDirname}/${fileBasenameNoExtension}"
|
|
|
|
// ],
|
|
|
|
// "options": {
|
|
|
|
// "cwd": "${workspaceFolder}"
|
|
|
|
// },
|
|
|
|
// "problemMatcher": [
|
|
|
|
// "$gcc"
|
|
|
|
// ],
|
|
|
|
// "group": "build"
|
|
|
|
// }
|
2020-09-26 11:38:38 +00:00
|
|
|
]
|
|
|
|
}
|