forked from irungentoo/toxcore
-
Notifications
You must be signed in to change notification settings - Fork 291
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Make run-infer script use docker.
So people can run it locally more easily.
- Loading branch information
Showing
2 changed files
with
24 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,25 @@ | ||
#!/bin/bash | ||
#!/bin/sh | ||
|
||
# Infer ignores everything that's not in the "current file". | ||
SKIP_LINES=1 | ||
# --bufferoverrun \ | ||
# --pulse \ | ||
|
||
set -e | ||
read -r -d '' SCRIPT <<'EOF' | ||
infer \ | ||
--report-console-limit 100 \ | ||
--jobs 8 \ | ||
--biabduction \ | ||
--loop-hoisting \ | ||
--quandary \ | ||
--racerd \ | ||
--starvation \ | ||
--uninit \ | ||
-- clang++ -fsyntax-only \ | ||
$(pkg-config --cflags libconfig libsodium opus vpx) \ | ||
/work/other/bootstrap_daemon/src/*.c \ | ||
/work/other/bootstrap_node_packets.c \ | ||
/work/toxav/*.c \ | ||
/work/toxcore/*.c \ | ||
/work/toxencryptsave/*.c | ||
EOF | ||
|
||
. other/analysis/gen-file.sh | ||
|
||
infer --no-progress-bar -- clang++ -fsyntax-only amalgamation.cc "${CPPFLAGS[@]}" | ||
docker run --rm -it -v "$PWD:/work" toxchat/infer bash -c "$SCRIPT" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters