Skip to content

Commit

Permalink
[runtime] Always look for dynamic libraries relative to the root dire…
Browse files Browse the repository at this point in the history
…ctory first. Fixes #xamarin/maccore@2668. (#18121)

Fixes xamarin/maccore#2668.
  • Loading branch information
rolfbjarne committed Apr 25, 2023
1 parent c9cb8ca commit edd9881
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions runtime/runtime.m
Expand Up @@ -2537,6 +2537,9 @@ -(void) xamarinSetFlags: (enum XamarinGCHandleFlags) flags;

NSMutableArray<NSString *> *directories = [NSMutableArray array];

// Always check in the root directory first.
[directories addObject: @"/"];

// Native libraries might be in the app bundle
[directories addObject: [NSString stringWithUTF8String: bundle_path]];
// They won't be in the runtimeidentifier-specific directory (because they get lipo'ed into a fat file instead)
Expand Down

6 comments on commit edd9881

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

@vs-mobiletools-engineering-service2
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📚 [CI Build] Artifacts 📚

Packages generated

View packages

Pipeline on Agent XAMMINI-047.Ventura
Hash: edd9881b12b0b6589216f7ff76f00a92ffe99ba4 [CI build]

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

Please sign in to comment.