From ca8153fdc8d1a25cb4d635c28af0767c594d3864 Mon Sep 17 00:00:00 2001 From: Amar Mahmutbegovic Date: Sun, 28 Apr 2024 16:53:59 +0200 Subject: [PATCH] copy compile db to project folder --- .gitignore | 2 +- Chapter04/bare/.vscode/tasks.json | 13 ++++++++++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index bbbb181..dfcf198 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ **/build/ **/.cache/ - +compile_commands.json diff --git a/Chapter04/bare/.vscode/tasks.json b/Chapter04/bare/.vscode/tasks.json index 7d50a41..9aa90fc 100644 --- a/Chapter04/bare/.vscode/tasks.json +++ b/Chapter04/bare/.vscode/tasks.json @@ -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"