Changeset View
Changeset View
Standalone View
Standalone View
src/build.rs
Context not available. | |||||
285 | fn print_link_libs(&self) { | 285 | fn print_link_libs(&self) { | ||
---|---|---|---|---|---|
286 | for path in &self.link_libs { | 286 | for path in &self.link_libs { | ||
287 | if let Some(parent) = path.parent() { | 287 | if let Some(parent) = path.parent() { | ||
288 | println!("cargo:rustc-link-search=native={}", parent.display()); | 288 | if parent.exists() { | ||
289 | println!("cargo:rustc-link-search=native={}", parent.display()); | ||||
290 | } | ||||
289 | } | 291 | } | ||
290 | if let Some(name) = path.file_name().and_then(|a| a.to_str()) { | 292 | if let Some(name) = path.file_name().and_then(|a| a.to_str()) { | ||
291 | // remove 'lib' prefix and '.so...' suffix | 293 | // remove 'lib' prefix and '.so...' suffix | ||
Context not available. |