macos work

This commit is contained in:
John Smith
2022-01-29 23:23:50 -05:00
parent 3262468a92
commit a17c8bad64
7 changed files with 31 additions and 37 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ fn resolve_llvm_path() -> Option<PathBuf> {
} else if #[cfg(target_os="macos")] {
// build host is mac
["/opt/homebrew/opt/llvm", "/usr/local/homebrew/opt/llvm"].iter().map(Path::new).find_map(|p| if p.exists() { Some(p.to_owned()) } else { None } )
["/usr/local/opt/llvm", "/opt/homebrew/opt/llvm", ].iter().map(Path::new).find_map(|p| if p.exists() { Some(p.to_owned()) } else { None } )
} else {
// anywhere else, just use the default paths
None