Skip to content

Instantly share code, notes, and snippets.

@rtorrero
Last active February 12, 2019 16:55
Show Gist options
  • Save rtorrero/67aa97788b16f3b2d2af67edeefaea83 to your computer and use it in GitHub Desktop.
Save rtorrero/67aa97788b16f3b2d2af67edeefaea83 to your computer and use it in GitHub Desktop.
tasks.json for VSCode to use in wicked development
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "Clean",
"type": "shell",
"command": "make clean || true",
"group": "build"
},
{
"label": "Build",
"type": "shell",
"command": "make CFLAGS='-std=gnu89 -O0 -g -D_FORTIFY_SOURCE=2 -fstack-protector -Wall -Wextra -Wno-unused-parameter' -j5 -w 2>&1 | /home/rtorrero/Projects/fixpath/fixpath",
"group": "build",
"problemMatcher": {
"owner": "cpp",
"fileLocation": "absolute",
"pattern": {
"regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$",
"file": 1,
"line": 2,
"column": 3,
"severity": 4,
"message": 5
}
}
},
{
"label": "Clean build",
"type": "shell",
"command": [
"${workspaceFolder}/autogen.sh > /dev/null 2>&1 &&",
"make CFLAGS='-std=gnu89 -O0 -g -D_FORTIFY_SOURCE=2 -fstack-protector -Wall -Wextra -Wno-unused-parameter' -j5 -w 2>&1 | /home/rtorrero/Projects/fixpath/fixpath"
],
"group": "build",
"problemMatcher": {
"owner": "cpp",
"fileLocation": "absolute",
"pattern": {
"regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$",
"file": 1,
"line": 2,
"column": 3,
"severity": 4,
"message": 5
}
},
"dependsOn": "Clean"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment