|
|
build_sanitize.sh - sfeed_tests - sfeed tests and RSS and Atom files |
|
|
 |
git clone git://git.codemadness.org/sfeed_tests (git://git.codemadness.org) |
|
|
 |
Log |
|
|
 |
Files |
|
|
 |
Refs |
|
|
 |
README |
|
|
 |
LICENSE |
|
|
|
--- |
|
|
|
build_sanitize.sh (393B) |
|
|
|
--- |
|
|
|
1 #!/bin/sh |
|
|
|
2 # Dependencies: gcc with -lasan and -lubsan or clang with support of it. |
|
|
|
3 |
|
|
|
4 # options, see https://clang.llvm.org/docs/UsersManual.html: |
|
|
|
5 #sanitize="-fsanitize=thread,alignment,undefined,memory,address,safe-stack" |
|
|
|
6 |
|
|
|
7 #sanitize="-fsanitize-trap=undefined" |
|
|
|
8 |
|
|
|
9 cc="${CC:-clang}" |
|
|
|
10 sanitize="-fsanitize=undefined,address" |
|
|
|
11 |
|
|
|
12 make clean |
|
|
|
13 make \ |
|
|
|
14 CC="$cc" \ |
|
|
|
15 CFLAGS="$sanitize" \ |
|
|
|
16 LDFLAGS="$sanitize" |
|