]> git.ipfire.org Git - thirdparty/kmod.git/commit
Add support for clang sanitizers
authorEmil Velikov <emil.l.velikov@gmail.com>
Wed, 9 Oct 2024 15:26:25 +0000 (16:26 +0100)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Fri, 18 Oct 2024 18:22:12 +0000 (13:22 -0500)
commitf5b4ff82f45af668cb4d62043184829b1e9621cb
treef9c615244cf0daef73afe5456e294d277eb50dc5
parent6091dae92582da07cd78e671ceef59f8cb1ee85f
Add support for clang sanitizers

By default clang uses static sanitizer libraries, which causes build and
test-time failures. Swap for the shared libasan which resolves both.

Note: meson tries to be helpful here, throwing a warning that we should
use -D b_lundef=false which is incorrect in our case.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/172
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
meson.build
scripts/sanitizer-env.sh