We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a6dee1a commit 1b4c155Copy full SHA for 1b4c155
libgit2-sys/build.rs
@@ -179,15 +179,19 @@ fn main() {
179
180
fn register_dep(dep: &str) {
181
if let Some(s) = env::var_os(&format!("DEP_{}_ROOT", dep)) {
182
- prepend("PKG_CONFIG_PATH", Path::new(&s).join("lib/pkgconfig"));
+ if !cfg!(target_env = "msvc") {
183
+ prepend("PKG_CONFIG_PATH", Path::new(&s).join("lib/pkgconfig"));
184
+ }
185
return
186
}
187
if let Some(s) = env::var_os(&format!("DEP_{}_INCLUDE", dep)) {
188
let root = Path::new(&s).parent().unwrap();
189
env::set_var(&format!("DEP_{}_ROOT", dep), root);
190
let path = root.join("lib/pkgconfig");
191
if path.exists() {
- prepend("PKG_CONFIG_PATH", path);
192
193
+ prepend("PKG_CONFIG_PATH", path);
194
195
196
197
0 commit comments