From 90668b466db0bf81bf424adff37f5e0f2e36f5fa Mon Sep 17 00:00:00 2001 From: Michal Sudwoj Date: Mon, 1 Jun 2020 14:49:40 +0200 Subject: [PATCH] Fixed LLVM path search --- src/path.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/path.rs b/src/path.rs index 34f660a..207468d 100644 --- a/src/path.rs +++ b/src/path.rs @@ -61,7 +61,7 @@ fn find_library_in_directory(directory: &Path) -> Option { match read_dir(directory) { Ok(files) => files .filter_map(Result::ok) - .find(|file| file.file_name().to_string_lossy().starts_with("libLLVM")) + .find(|file| file.file_name().to_string_lossy().starts_with("libLLVM.")) .map(|file| file.path()), Err(_) => None,