Run asan in CI. Fixes #713

This commit is contained in:
Thom Chiovoloni
2020-04-16 02:38:40 -07:00
committed by Thom Chiovoloni
parent 4abc8a4fdd
commit 185899eab1
4 changed files with 26 additions and 0 deletions

View File

@@ -80,6 +80,11 @@ mod build_bundled {
.flag("-DSQLITE_USE_URI")
.flag("-DHAVE_USLEEP=1")
.warnings(false);
if cfg!(feature = "with-asan") {
cfg.flag("-fsanitize=address");
}
// Older versions of visual studio don't support c99 (including isnan), which
// causes a build failure when the linker fails to find the `isnan`
// function. `sqlite` provides its own implmentation, using the fact