mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-23 18:32:55 +00:00
add script for static analysis build
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
14ec74239b
commit
d03dc1564d
1 changed files with 13 additions and 0 deletions
13
scripts/analyze.sh
Executable file
13
scripts/analyze.sh
Executable file
|
@ -0,0 +1,13 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
cwd="$(readlink -f $(dirname $0))"
|
||||||
|
|
||||||
|
rm -rf "$cwd/../debug"
|
||||||
|
mkdir -p "$cwd/../debug"
|
||||||
|
cd "$cwd/../debug"
|
||||||
|
|
||||||
|
scan-build cmake ../ -DCMAKE_BUILD_TYPE=Debug \
|
||||||
|
-DCMAKE_INSTALL_PREFIX=/usr $@
|
||||||
|
scan-build make -j $(nproc || sysctl -n hw.ncpu || echo 1)
|
Loading…
Add table
Reference in a new issue