Skip to content

Commit 0cc67bf

Browse files
committed
Fix ld —verbose regex so it works on arch too…
1 parent f8dd24c commit 0cc67bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libhdf5-sys/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ fn validate_runtime_version(config: &Config) {
113113
let mut link_paths = config.link_paths.clone();
114114
if cfg!(all(unix, not(target_os = "macos"))) {
115115
if let Some(ldv) = run_command("ld", &["--verbose"]) {
116-
let re = Regex::new(r#"SEARCH_DIR\("=(?P<path>[^"]+)"\)"#).unwrap();
116+
let re = Regex::new(r#"SEARCH_DIR\("=?(?P<path>[^"]+)"\)"#).unwrap();
117117
println!("Adding extra link paths (ld)...");
118118
for caps in re.captures_iter(&ldv) {
119119
let path = &caps["path"];

0 commit comments

Comments
 (0)