mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-19 22:46:36 -05:00
Add the new makesan.sh script and some more comments
This commit is contained in:
parent
9430106c71
commit
e5ab577b6d
4 changed files with 68 additions and 0 deletions
57
makesan.sh
Executable file
57
makesan.sh
Executable file
|
|
@ -0,0 +1,57 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# Run all the Sanitizers available
|
||||
#
|
||||
|
||||
# Compiler to use
|
||||
COMPILER=clang-3.6
|
||||
|
||||
# Options for configure
|
||||
# --disable-asm
|
||||
# Inline assembly is not supported by the Sanitizers
|
||||
# --without-blkid
|
||||
# External libraries are not supported by the Sanitizers
|
||||
OPTIONS="--disable-asm --without-blkid"
|
||||
|
||||
make distclean
|
||||
|
||||
# AddressSanitizer
|
||||
if ! ./configure --enable-asan $OPTIONS CC=$COMPILER; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if ! make check distclean; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# UndefinedBehaviourSanitizer
|
||||
if ! ./configure --enable-ubsan $OPTIONS CC=$COMPILER; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if ! make check distclean; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# MemorySanitizer
|
||||
if ! ./configure --enable-msan $OPTIONS CC=$COMPILER; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if ! make check distclean; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# ThreadSanitizer
|
||||
if ! ./configure --enable-tsan $OPTIONS CC=$COMPILER; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if ! make check distclean; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if ! ./configure ; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue