mirror of
https://github.com/isar/rusqlite.git
synced 2024-11-23 00:39:20 +08:00
Ignore PATH change
Cargo itself changes the PATH. So `libsqlite3-sys` is always rebuilt on Windows platform. To avoid this, we ignore PATH change. If the PATH has been modified in such a way that a different SQLite library is found, you will have to also modify SQLITE3_LIB_DIR to make cargo rebuild `libsqlite3-sys` Fix #435.
This commit is contained in:
parent
055352f07b
commit
17759a912e
@ -199,9 +199,6 @@ mod build_linked {
|
|||||||
println!("cargo:rerun-if-env-changed={}_INCLUDE_DIR", env_prefix());
|
println!("cargo:rerun-if-env-changed={}_INCLUDE_DIR", env_prefix());
|
||||||
println!("cargo:rerun-if-env-changed={}_LIB_DIR", env_prefix());
|
println!("cargo:rerun-if-env-changed={}_LIB_DIR", env_prefix());
|
||||||
println!("cargo:rerun-if-env-changed={}_STATIC", env_prefix());
|
println!("cargo:rerun-if-env-changed={}_STATIC", env_prefix());
|
||||||
if cfg!(target_os = "windows") {
|
|
||||||
println!("cargo:rerun-if-env-changed=PATH");
|
|
||||||
}
|
|
||||||
if cfg!(all(feature = "vcpkg", target_env = "msvc")) {
|
if cfg!(all(feature = "vcpkg", target_env = "msvc")) {
|
||||||
println!("cargo:rerun-if-env-changed=VCPKGRS_DYNAMIC");
|
println!("cargo:rerun-if-env-changed=VCPKGRS_DYNAMIC");
|
||||||
}
|
}
|
||||||
|
@ -254,14 +254,14 @@ pub enum IndexConstraintOp {
|
|||||||
SQLITE_INDEX_CONSTRAINT_LT,
|
SQLITE_INDEX_CONSTRAINT_LT,
|
||||||
SQLITE_INDEX_CONSTRAINT_GE,
|
SQLITE_INDEX_CONSTRAINT_GE,
|
||||||
SQLITE_INDEX_CONSTRAINT_MATCH,
|
SQLITE_INDEX_CONSTRAINT_MATCH,
|
||||||
SQLITE_INDEX_CONSTRAINT_LIKE, // 3.10.0
|
SQLITE_INDEX_CONSTRAINT_LIKE, // 3.10.0
|
||||||
SQLITE_INDEX_CONSTRAINT_GLOB, // 3.10.0
|
SQLITE_INDEX_CONSTRAINT_GLOB, // 3.10.0
|
||||||
SQLITE_INDEX_CONSTRAINT_REGEXP, // 3.10.0
|
SQLITE_INDEX_CONSTRAINT_REGEXP, // 3.10.0
|
||||||
SQLITE_INDEX_CONSTRAINT_NE, // 3.21.0
|
SQLITE_INDEX_CONSTRAINT_NE, // 3.21.0
|
||||||
SQLITE_INDEX_CONSTRAINT_ISNOT, // 3.21.0
|
SQLITE_INDEX_CONSTRAINT_ISNOT, // 3.21.0
|
||||||
SQLITE_INDEX_CONSTRAINT_ISNOTNULL, // 3.21.0
|
SQLITE_INDEX_CONSTRAINT_ISNOTNULL, // 3.21.0
|
||||||
SQLITE_INDEX_CONSTRAINT_ISNULL, // 3.21.0
|
SQLITE_INDEX_CONSTRAINT_ISNULL, // 3.21.0
|
||||||
SQLITE_INDEX_CONSTRAINT_IS, // 3.21.0
|
SQLITE_INDEX_CONSTRAINT_IS, // 3.21.0
|
||||||
SQLITE_INDEX_CONSTRAINT_FUNCTION(u8), // 3.25.0
|
SQLITE_INDEX_CONSTRAINT_FUNCTION(u8), // 3.25.0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user