mirror of
https://github.com/tree-sitter/tree-sitter.git
synced 2026-09-10 07:36:22 -04:00
fix(loader): search correct cache directory for wasi-sdk clang
This commit is contained in:
parent
aea4ef2338
commit
148b4ca1b2
|
|
@ -1566,10 +1566,10 @@ impl Loader {
|
|||
})
|
||||
})?;
|
||||
|
||||
let tool_dir = cache_dir.join(tool_name);
|
||||
let tool_dir = cache_dir.join(toolchain).join("bin");
|
||||
|
||||
for exe in possible_exes {
|
||||
let tool_exe = tool_dir.join("bin").join(exe);
|
||||
let tool_exe = tool_dir.join(exe);
|
||||
if tool_exe.exists() {
|
||||
return Ok(Some(tool_exe));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue