Skip to content

Commit 6c9b28f

Browse files
committed
reverted .native()
1 parent b0ea95f commit 6c9b28f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ggml/src/ggml-backend-reg.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ static fs::path backend_filename_extension() {
488488
static ggml_backend_reg_t ggml_backend_load_best(const char * name, bool silent, const char * user_search_path) {
489489
// enumerate all the files that match [lib]ggml-name-*.[so|dll] in the search paths
490490
const fs::path name_path = fs::u8path(name);
491-
const fs::path file_prefix = backend_filename_prefix() / name_path / fs::u8path("-");
491+
const fs::path file_prefix = backend_filename_prefix().native() + name_path.native() + fs::u8path("-").native();
492492
const fs::path file_extension = backend_filename_extension();
493493

494494
std::vector<fs::path> search_paths;
@@ -543,7 +543,7 @@ static ggml_backend_reg_t ggml_backend_load_best(const char * name, bool silent,
543543
if (best_score == 0) {
544544
// try to load the base backend
545545
for (const auto & search_path : search_paths) {
546-
fs::path filename = backend_filename_prefix() / name_path / backend_filename_extension();
546+
fs::path filename = backend_filename_prefix().native() + name_path.native() + backend_filename_extension().native();
547547
fs::path path = search_path / filename;
548548
if (fs::exists(path)) {
549549
return get_reg().load_backend(path, silent);

0 commit comments

Comments
 (0)