`tasks.json` 配置
zhiyin123
·
·
个人记录
{
"version": "2.0.0",
"tasks": [
{
"label": "Debug",
"command": "/usr/bin/g++",
"type": "shell",
"args": [
"${file}",
"-o",
"${fileDirname}/${fileBasenameNoExtension}",
"-std=c++14",
"-lm",
"-Wall",
"-fsanitize=address,undefined"
],
"options": {
"cwd": "${fileDirname}"
},
"problemMatcher": [],
"presentation": {
"echo": true,
"reveal": "always",
"focus": true,
"panel": "shared",
"showReuseMessage": true,
"clear": true
},
"group": "build"
},
{
"label": "Release",
"command": "/usr/bin/g++",
"type": "shell",
"args": [
"${file}",
"-o",
"${fileDirname}/${fileBasenameNoExtension}",
"-std=c++14",
"-lm",
"-Wall",
"-O2",
"-ulimit"
],
"options": {
"cwd": "${fileDirname}"
},
"problemMatcher": [],
"presentation": {
"echo": true,
"reveal": "always",
"focus": true,
"panel": "shared",
"showReuseMessage": true,
"clear": true
},
"group": "build"
},
{
"label": "Run",
"command": "/usr/bin/time",
"type": "shell",
"args": [
"${fileDirname}/${fileBasenameNoExtension}"
],
"options": {
"cwd": "${fileDirname}"
},
"problemMatcher": [],
"presentation": {
"echo": true,
"reveal": "always",
"focus": true,
"panel": "shared",
"showReuseMessage": true,
"clear": true
},
"group": "build"
}
]
}