Fix swift pm load

This commit is contained in:
Angelos Katharopoulos 2025-04-24 09:51:40 -07:00
parent 86984cad68
commit 9bde6a95eb

View File

@ -69,8 +69,8 @@ MTL::Library* try_load_bundle(
if (bundle != nullptr) {
std::string resource_path =
std::string(bundle->resourceURL()->fileSystemRepresentation()) + "/" +
lib_name + ".metallib" auto [lib, error] =
load_library_from_path(device, resource_path.c_str());
lib_name + ".metallib";
auto [lib, error] = load_library_from_path(device, resource_path.c_str());
if (lib) {
return lib;
}