summaryrefslogtreecommitdiff
path: root/.vscode
diff options
context:
space:
mode:
authorChristian Lohmaier <lohmaier+LibreOffice@googlemail.com>2022-11-30 11:30:23 +0100
committerChristian Lohmaier <lohmaier+LibreOffice@googlemail.com>2022-12-05 13:54:00 +0000
commitdf092b591a7d107263f3fad817404f92b3cd7c03 (patch)
tree47518c3bb9ee8437f8ee1e378c5e3a29c58d5499 /.vscode
parent59d868b9eddebb19b0c40d7c1ca70265fc9df137 (diff)
create compile_commands.json in builddir
assuming that nothing breaks for existing users of the compile_commands.json file, since they assume BUILDDIR=SRCDIR, so nothing will change in those cases. For building in a different directory than the source, the compile_commands.json file is the only thing that regularly clobbers my otherwise pristine SRCROOT Change-Id: I344afa0bc7bb3eaa1eb888cd3558d3602090af5f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143571 Tested-by: Jenkins Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Diffstat (limited to '.vscode')
-rw-r--r--.vscode/vs-code-template.code-workspace.in3
1 files changed, 1 insertions, 2 deletions
diff --git a/.vscode/vs-code-template.code-workspace.in b/.vscode/vs-code-template.code-workspace.in
index f6078155e8dc..87a6a27ac865 100644
--- a/.vscode/vs-code-template.code-workspace.in
+++ b/.vscode/vs-code-template.code-workspace.in
@@ -35,8 +35,7 @@
"files.associations": {
"*.patch.[0-9]": "diff"
},
- // FIXME: arguably the generator should place it in the builddir, not srcdir
- "C_Cpp.default.compileCommands": "${workspaceFolder:srcdir}/compile_commands.json",
+ "C_Cpp.default.compileCommands": "@BUILDDIR@/compile_commands.json",
// only used if the file doesn't match anything in the compile_commands.json - aka externals
// libxml includes just added as example/for reference
"C_Cpp.default.includePath": [