From b76ac2daffb98fe7aea14385638150381cfb031b Mon Sep 17 00:00:00 2001 From: xegineering Date: Fri, 29 Nov 2024 16:21:46 +0100 Subject: 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`. --- generate-compile-commands.sh | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 generate-compile-commands.sh (limited to 'generate-compile-commands.sh') 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) -- cgit v1.2.3-70-g09d2