diff options
author | xegineering <me@xegineering.eu> | 2024-11-29 16:21:46 +0100 |
---|---|---|
committer | xegineering <me@xegineering.eu> | 2024-12-08 18:22:14 +0100 |
commit | b76ac2daffb98fe7aea14385638150381cfb031b (patch) | |
tree | ccfc9b707737939f26650cd4419c4e6d0efd0067 | |
parent | 49f47e76a85b3477835a0adec05649507d94b2e8 (diff) | |
download | soundbox-go-b76ac2daffb98fe7aea14385638150381cfb031b.tar soundbox-go-b76ac2daffb98fe7aea14385638150381cfb031b.tar.zst soundbox-go-b76ac2daffb98fe7aea14385638150381cfb031b.zip |
Add generate-compile-commands.sh
This documents the `bear` call required to produce a proper
`compile_commands.json` here.
The JSON file is not committed since it contains absolute paths. It is
used for language servers like `clangd`.
-rwxr-xr-x | generate-compile-commands.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/generate-compile-commands.sh b/generate-compile-commands.sh new file mode 100755 index 0000000..ae19827 --- /dev/null +++ b/generate-compile-commands.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +set -euf + +bear -- gcc -Wall soundbox/pipewire-binding.c \ + $(pkg-config --cflags --libs libpipewire-0.3) |