build/.vscode/tasks.json
Rene Rivera 150d69bd57 Default to available cpu threads for -j option.
This adds a `b2::system_info` class to obtain available information on
system we are running in. Currently provides CPU counts.
And currently only implemented for macOS.
2019-06-03 18:39:22 -05:00

64 lines
1.8 KiB
JSON

{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "B2 Engine Build",
"type": "shell",
"windows": {
"command": "build.bat"
},
"osx": {
"command": "./build.sh"
},
"linux": {
"command": "./build.sh"
},
"options": {
"cwd": "src/engine"
},
"problemMatcher": {
"owner": "cpptools",
"fileLocation": [
"relative",
"${workspaceFolder}/src/engine"
],
"pattern": {
"regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$",
"file": 1,
"line": 2,
"column": 3,
"severity": 4,
"message": 5
}
},
"group": "build"
},
{
"label": "B2 Engine Infer",
"type": "shell",
"osx": {
"command": "CXX='infer run -- clang++' ./build.sh clang"
},
"options": {
"cwd": "src/engine"
},
"problemMatcher": {
"owner": "cpptools",
"fileLocation": [
"relative",
"${workspaceFolder}/src/engine"
],
"pattern": {
"regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$",
"file": 1,
"line": 2,
"column": 3,
"severity": 4,
"message": 5
}
}
}
]
}