51 lines
1.6 KiB
JSON
51 lines
1.6 KiB
JSON
|
{
|
||
|
// See https://go.microsoft.com/fwlink/?LinkId=733558
|
||
|
// for the documentation about the tasks.json format
|
||
|
"version": "2.0.0",
|
||
|
"tasks": [
|
||
|
{
|
||
|
"label": "Build Debug GCC",
|
||
|
"type": "shell",
|
||
|
"command": [
|
||
|
"cd ${workspaceFolder} &&",
|
||
|
"mkdir -p build && cd build &&",
|
||
|
"cmake -DCMAKE_BUILD_TYPE=Debug -DENABLE_EXAMPLES=ON .. &&",
|
||
|
"cmake --build . --parallel `nproc`",
|
||
|
"|| ( printf '\n\n\t\\e[31mERROR: Build failed!\\e[0m\n\n\n' && exit 1 )"
|
||
|
],
|
||
|
"options": {
|
||
|
"env": {
|
||
|
}
|
||
|
},
|
||
|
"presentation": {
|
||
|
"clear": true
|
||
|
},
|
||
|
"problemMatcher": [],
|
||
|
"group": {
|
||
|
"kind": "build",
|
||
|
"isDefault": true
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"label": "Build Debug Clang",
|
||
|
"type": "shell",
|
||
|
"command": [
|
||
|
"cd ${workspaceFolder} &&",
|
||
|
"mkdir -p build_clang && cd build_clang &&",
|
||
|
"cmake -DCMAKE_BUILD_TYPE=Debug -DENABLE_EXAMPLES=ON .. &&",
|
||
|
"cmake --build . --parallel `nproc`",
|
||
|
"|| ( printf '\n\n\t\\e[31mERROR: Build failed!\\e[0m\n\n\n' && exit 1 )"
|
||
|
],
|
||
|
"options": {
|
||
|
"env": {
|
||
|
"CC": "/usr/sbin/clang",
|
||
|
"CXX": "/usr/sbin/clang++",
|
||
|
}
|
||
|
},
|
||
|
"presentation": {
|
||
|
"clear": true
|
||
|
},
|
||
|
"problemMatcher": []
|
||
|
}
|
||
|
]
|
||
|
}
|