mirror of
https://github.com/isar/rusqlite.git
synced 2024-11-23 00:39:20 +08:00
Allow static linking against the VC runtime
This commit is contained in:
parent
8a88ba647c
commit
e2af87f747
@ -221,6 +221,11 @@ mod build_bundled {
|
|||||||
cfg.flag("-fsanitize=address");
|
cfg.flag("-fsanitize=address");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// If explicitly requested: enable static linking against the Microsoft Visual C++ Runtime to avoid dependencies on vcruntime140.dll and similar libraries.
|
||||||
|
if cfg!(target_feature = "crt-static") && is_compiler("msvc") {
|
||||||
|
cfg.static_crt(true);
|
||||||
|
}
|
||||||
|
|
||||||
// Older versions of visual studio don't support c99 (including isnan), which
|
// Older versions of visual studio don't support c99 (including isnan), which
|
||||||
// causes a build failure when the linker fails to find the `isnan`
|
// causes a build failure when the linker fails to find the `isnan`
|
||||||
// function. `sqlite` provides its own implementation, using the fact
|
// function. `sqlite` provides its own implementation, using the fact
|
||||||
|
Loading…
Reference in New Issue
Block a user