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:
parent
a2aa34cf35
commit
265bc025d5
3 changed files with 15 additions and 74 deletions
15
cdb
Executable file
15
cdb
Executable 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue