fix: symlink to compile_commands.json

This commit is contained in:
Michael Mandl 2023-10-22 21:48:05 +02:00
parent 03756b0429
commit 161e768069
Signed by: mandlm
GPG key ID: 4AA25D647AA54CC7
3 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View file

@ -1,3 +1,4 @@
/.build /.build
/.cache /.cache
/bin /bin
compile_commands.json

View file

@ -21,7 +21,6 @@ repos:
hooks: hooks:
- id: clang-format - id: clang-format
- id: clang-tidy - id: clang-tidy
args: [-p=.build]
- repo: https://github.com/cheshirekow/cmake-format-precommit - repo: https://github.com/cheshirekow/cmake-format-precommit
rev: v0.6.13 rev: v0.6.13

View file

@ -1,3 +1,4 @@
#!/usr/bin/env sh #!/usr/bin/env sh
cmake -S . -B .build -G Ninja -D CMAKE_EXPORT_COMPILE_COMMANDS=ON cmake -S . -B .build -G Ninja -D CMAKE_EXPORT_COMPILE_COMMANDS=ON
ln -s .build/compile_commands.json