1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
set -eu
cd "$(dirname "$0")/.."
make cleanall
make "$@" CFLAGS="-O0 -g3" DEVELOPER=1 SANITIZE=address,undefined \
GENERATE_COMPILATION_DATABASE=yes
if test -d vendor/git/compile_commands
then
find vendor/git/compile_commands -name '*.json' -exec cat {} + |
sed -e '1s/^/[/' -e '$s/,$/]/' >build/compile_commands.json
test -s build/compile_commands.json || rm -f build/compile_commands.json
fi
if command -v ctags >/dev/null
then
make tags
fi
|