android flutter plugin

This commit is contained in:
John Smith
2022-01-29 18:50:38 -05:00
parent 32908dd719
commit a5e4e5c908
11 changed files with 147 additions and 20 deletions

View File

@@ -14,7 +14,7 @@ fn resolve_llvm_path() -> Option<PathBuf> {
// find clang
let d = paths.iter().find_map(|p| {
if p.join("clang").exists() {
if let Ok(real_clang_path) = fs::canonicalize(p.join("clang")) {
if let Ok(real_clang_path) = std::fs::canonicalize(p.join("clang")) {
if let Some(llvmbindir) = real_clang_path.parent() {
if let Some(llvmdir) = llvmbindir.parent() {
return Some(llvmdir.to_owned());