Skip to content

Commit

Permalink
Update context.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike-Leo-Smith authored Dec 11, 2024
1 parent 227b633 commit 7ba4f4f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/runtime/context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -139,17 +139,17 @@ class ContextImpl {
DynamicModule::add_search_path(runtime_directory);
}

const auto &extension_so = luisa::filesystem::path(".so");
const auto &extension_dll = luisa::filesystem::path(".dll");
const auto &extension_dylib = luisa::filesystem::path(".dylib");
const auto extension_so = luisa::filesystem::path(".so");
const auto extension_dll = luisa::filesystem::path(".dll");
const auto extension_dylib = luisa::filesystem::path(".dylib");
constexpr std::array possible_prefixes {
"lc-backend-"sv,
"liblc-backend-"sv // Make Mingw happy
};
for (auto &&p : luisa::filesystem::directory_iterator{runtime_directory}) {
auto &&path = p.path();
auto p_is_regular_file = p.is_regular_file();
const auto &path_extension = path.extension();
const auto path_extension = path.extension();

if (
p_is_regular_file && (
Expand Down

0 comments on commit 7ba4f4f

Please sign in to comment.