clang-sanitize.sh 302 B

12345678910111213
  1. #!/bin/bash
  2. # This is known to work with clang-3.4 from Debian testing/unstable.
  3. # 2013/07/14
  4. export CC=clang
  5. export CXX=clang++
  6. export CFLAGS="-O3 -fsanitize=address,integer,undefined"
  7. export CXXFLAGS="-O3 -fsanitize=address,integer,undefined"
  8. ./configure --enable-gcc-werror
  9. make clean all check