mirror of
https://github.com/ml-explore/mlx.git
synced 2025-07-27 20:07:59 +08:00
Another fix
This commit is contained in:
parent
9bde6a95eb
commit
7906590c0e
@ -108,7 +108,7 @@ std::pair<MTL::Library*, NS::Error*> load_swiftpm_library(
|
|||||||
auto bundles = NS::Bundle::allBundles();
|
auto bundles = NS::Bundle::allBundles();
|
||||||
for (int i = 0, c = (int)bundles->count(); i < c; i++) {
|
for (int i = 0, c = (int)bundles->count(); i < c; i++) {
|
||||||
auto bundle = reinterpret_cast<NS::Bundle*>(bundles->object(i));
|
auto bundle = reinterpret_cast<NS::Bundle*>(bundles->object(i));
|
||||||
library = try_load_bundle(device, bundle->resourceURL());
|
library = try_load_bundle(device, bundle->resourceURL(), lib_name);
|
||||||
if (library != nullptr) {
|
if (library != nullptr) {
|
||||||
return {library, nullptr};
|
return {library, nullptr};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user