build: remove zig wrapper and replace it with cdb helper

Just use anyzig. No real need for a zig wrapper any more.
This commit is contained in:
CJ van den Berg 2026-01-22 14:53:43 +01:00
parent a2aa34cf35
commit 265bc025d5
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
3 changed files with 15 additions and 74 deletions

15
cdb Executable file
View file

@ -0,0 +1,15 @@
#!/bin/bash
set -e
rm -rf .zig-cache
rm -rf .cache/cdb
mkdir -p .cache/cdb
zig build
(
echo \[
cat .cache/cdb/*
echo {}\]
) | perl -0777 -pe 's/,\n\{\}//igs' | jq . | grep -v 'no-default-config' >compile_commands.json
exit 0