From f702bc0797a2165a902811badfaca9503c4757f4 Mon Sep 17 00:00:00 2001 From: Alex Maystrenko Date: Sun, 24 Mar 2019 21:21:13 +0100 Subject: [PATCH] rebuild when VCPKGRS_DYNAMIC changes --- libsqlite3-sys/build.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libsqlite3-sys/build.rs b/libsqlite3-sys/build.rs index e91f8c6..1e5180a 100644 --- a/libsqlite3-sys/build.rs +++ b/libsqlite3-sys/build.rs @@ -132,6 +132,9 @@ mod build { if cfg!(target_os = "windows") { println!("cargo:rerun-if-env-changed=PATH"); } + if cfg!(all(feature = "vcpkg", target_env = "msvc")) { + println!("cargo:rerun-if-env-changed=VCPKGRS_DYNAMIC"); + } // Allow users to specify where to find SQLite. if let Ok(dir) = env::var(format!("{}_LIB_DIR", env_prefix())) { // Try to use pkg-config to determine link commands