Add file Scripts/clang-sanitize.sh.

This commit is contained in:
Erik de Castro Lopo 2013-07-14 09:25:21 +10:00
parent 93bdeabf07
commit 46a68f972e

13
Scripts/clang-sanitize.sh Executable file
View File

@ -0,0 +1,13 @@
#!/bin/bash
# This is known to work with clang-3.4 from Debian testing/unstable.
# 2013/07/14
export CC=clang
export CXX=clang++
export CFLAGS="-O3 -fsanitize=address,integer,undefined"
export CXXFLAGS="-O3 -fsanitize=address,integer,undefined"
./configure --enable-gcc-werror
make clean all check