thespian/cdb
CJ van den Berg 265bc025d5
build: remove zig wrapper and replace it with cdb helper
Just use anyzig. No real need for a zig wrapper any more.
2026-01-22 14:53:43 +01:00

15 lines
240 B
Bash
Executable file

#!/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