mheily / libkqueue

kqueue(2) compatibility library
Other
236 stars 77 forks source link

Sanitizers not running during github builds #114

Closed timwoj closed 2 years ago

timwoj commented 2 years ago

I was surprised to see that the builds were passing, including the tsan build that was causing a bunch of problems before, but it appears that the sanitizers are not actually being included in the builds (including the asan one). The configure step shows the sanitizers being enabled, but the build step doesn't have them in the compiler invocations:

-- Detecting C compile features - done
ENABLING ASAN
ENABLING LSAN
ENABLING UBSAN
-- Looking for pthread.h
[  4%] Building C object CMakeFiles/kqueue.dir/src/common/filter.c.o
/usr/bin/clang -D_XOPEN_SOURCE=600 -Dkqueue_EXPORTS -I/home/runner/work/libkqueue/libkqueue -I/home/runner/work/libkqueue/libkqueue/include -I/home/runner/work/libkqueue/libkqueue/src/common -fPIC -fvisibility=hidden -pthread -std=gnu11 -MD -MT CMakeFiles/kqueue.dir/src/common/filter.c.o -MF CMakeFiles/kqueue.dir/src/common/filter.c.o.d -o CMakeFiles/kqueue.dir/src/common/filter.c.o -c /home/runner/work/libkqueue/libkqueue/src/common/filter.c

There should be an -fsanitize argument in there somewhere.