mirror of
https://github.com/isar/rusqlite.git
synced 2025-10-08 04:22:19 +08:00
Run asan in CI. Fixes #713
This commit is contained in:
committed by
Thom Chiovoloni
parent
4abc8a4fdd
commit
185899eab1
@@ -31,6 +31,7 @@ preupdate_hook = []
|
||||
# 3.13.0
|
||||
session = ["preupdate_hook"]
|
||||
in_gecko = []
|
||||
with-asan = []
|
||||
|
||||
[build-dependencies]
|
||||
bindgen = { version = "0.53", optional = true, default-features = false, features = ["runtime"] }
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user