copy compile db to project folder
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1,4 +1,4 @@
|
||||
**/build/
|
||||
**/.cache/
|
||||
|
||||
compile_commands.json
|
||||
|
||||
|
||||
13
Chapter04/bare/.vscode/tasks.json
vendored
13
Chapter04/bare/.vscode/tasks.json
vendored
@@ -17,11 +17,22 @@
|
||||
"detail": "Generates build system files with CMake"
|
||||
},
|
||||
{
|
||||
"label": "Build",
|
||||
"label": "Copy Compile Db",
|
||||
"type": "shell",
|
||||
"dependsOn": [
|
||||
"Configure"
|
||||
],
|
||||
"command": "cp ${workspaceFolder}/build/compile_commands.json ${workspaceFolder}",
|
||||
"group": "build",
|
||||
"problemMatcher": [],
|
||||
"detail": "Generates build system files with CMake"
|
||||
},
|
||||
{
|
||||
"label": "Build",
|
||||
"type": "shell",
|
||||
"dependsOn": [
|
||||
"Copy Compile Db"
|
||||
],
|
||||
"command": "make",
|
||||
"args": [
|
||||
"-C", "build"
|
||||
|
||||
Reference in New Issue
Block a user