8 # TODO: remove this workaround once https://bugs.debian.org/836723 is fixed
9 # Found at https://llvm.org/bugs/show_bug.cgi?id=27310#c8:
10 if [ "$CC" = "clang" ]
13 void __isoc99_printf() {}
14 void __isoc99_sprintf() {}
15 void __isoc99_snprintf() {}
16 void __isoc99_fprintf() {}
17 void __isoc99_vprintf() {}
18 void __isoc99_vsprintf() {}
19 void __isoc99_vsnprintf() {}
20 void __isoc99_vfprintf() {}
21 void __cxa_throw() {} // NEW
23 gcc fixasan.c -o fixasan.so -fPIC -shared -nostdlib
24 export LD_PRELOAD=$PWD/fixasan.so
27 # Try running the tests in parallel so that the common case (tests pass) is
28 # quick, but fall back to running them in sequence to make debugging easier.
31 ./testcases/complete-run.pl --parallel=1 || (cat latest/complete-run.log; false)