fix: Windows search path
This commit is contained in:
parent
318600fbcb
commit
429aa9b94f
1 changed files with 4 additions and 0 deletions
|
@ -458,7 +458,11 @@ static ggml_backend_reg_t ggml_backend_load_best(const char * name, bool silent,
|
||||||
search_paths.push_back("./");
|
search_paths.push_back("./");
|
||||||
search_paths.push_back(get_executable_path());
|
search_paths.push_back(get_executable_path());
|
||||||
} else {
|
} else {
|
||||||
|
#if defined(_WIN32)
|
||||||
|
search_paths.push_back(std::string(user_search_path) + "\\");
|
||||||
|
#else
|
||||||
search_paths.push_back(std::string(user_search_path) + "/");
|
search_paths.push_back(std::string(user_search_path) + "/");
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
int best_score = 0;
|
int best_score = 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue