From 53a83a3c91fab363047316590e72578a82003ee4 Mon Sep 17 00:00:00 2001 From: Qi Xiao Date: Wed, 13 Nov 2019 23:31:13 +0000 Subject: [PATCH] Fix ln command for compile_commands.json. --- Project-Setup.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Project-Setup.md b/Project-Setup.md index 611a8d3..dca36e1 100644 --- a/Project-Setup.md +++ b/Project-Setup.md @@ -32,7 +32,7 @@ directory containing `compile_commands.json`. ```zsh % cmake -H. -BDebug -DCMAKE_BUILD_TYPE=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS=YES -% ln -s Debug/compile_commands.json +% ln -s Debug/compile_commands.json . ``` Caveat on Windows: CMake dumps Windows shell command line directly into `command`, depends on how ccls was built, it may confuse this field as command line from a POSIX shell, in which Windows path separator '\\' is a escape character. You can use jq to convert such entries to use `arguments` which does not have this issue: