mirror of
https://github.com/isar/rusqlite.git
synced 2024-11-23 09:09:19 +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");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user