mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-26 01:21:57 +00:00
Fix ln command for compile_commands.json.
parent
bf255f3305
commit
53a83a3c91
@ -32,7 +32,7 @@ directory containing `compile_commands.json`.
|
|||||||
|
|
||||||
```zsh
|
```zsh
|
||||||
% cmake -H. -BDebug -DCMAKE_BUILD_TYPE=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS=YES
|
% 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:
|
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:
|
||||||
|
Loading…
Reference in New Issue
Block a user