[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor/master] Teach the scan-build script to output to a chosen directory
commit a28e239b171c1a69fd32b6583bca0559f7116445
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date: Tue Sep 12 21:42:36 2017 -0400
Teach the scan-build script to output to a chosen directory
---
scripts/test/scan-build.sh | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/scripts/test/scan-build.sh b/scripts/test/scan-build.sh
index fdd1c7a4f..bc602e61a 100755
--- a/scripts/test/scan-build.sh
+++ b/scripts/test/scan-build.sh
@@ -46,6 +46,12 @@ NOISY_CHECKERS="\
-enable-checker alpha.deadcode.UnreachableCode \
"
+if test "x$SCAN_BUILD_OUTPUT" != "x"; then
+ OUTPUTARG="-o $SCAN_BUILD_OUTPUT"
+else
+ OUTPUTARG=""
+fi
+
scan-build \
$CHECKERS \
./configure
@@ -53,7 +59,7 @@ scan-build \
make clean
scan-build \
- $CHECKERS \
+ $CHECKERS $OUTPUTARG \
make -j5 -k
CHECKERS="\
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits