Codebase list i3-gaps / 086276b
travis: only enable asan workaround for clang (breaks gcc) fixes #2437 Michael Stapelberg 7 years ago
1 changed file(s) with 6 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
66
77 # TODO: remove this workaround once https://bugs.debian.org/836723 is fixed
88 # Found at https://llvm.org/bugs/show_bug.cgi?id=27310#c8:
9 cat >fixasan.c <<EOT
9 if [ "$CC" = "clang" ]
10 then
11 cat >fixasan.c <<EOT
1012 void __isoc99_printf() {}
1113 void __isoc99_sprintf() {}
1214 void __isoc99_snprintf() {}
1719 void __isoc99_vfprintf() {}
1820 void __cxa_throw() {} // NEW
1921 EOT
20 gcc fixasan.c -o fixasan.so -fPIC -shared -nostdlib
21 export LD_PRELOAD=$PWD/fixasan.so
22 gcc fixasan.c -o fixasan.so -fPIC -shared -nostdlib
23 export LD_PRELOAD=$PWD/fixasan.so
24 fi
2225
2326 # Try running the tests in parallel so that the common case (tests pass) is
2427 # quick, but fall back to running them in sequence to make debugging easier.