Skip to content

Commit

Permalink
Fix native library loading for osx-arm64 (#17495)
Browse files Browse the repository at this point in the history
Co-authored-by: Marc-André Moreau <mamoreau@devolutions.net>
  • Loading branch information
github-actions[bot] and Marc-André Moreau committed Jun 7, 2022
1 parent f518f0b commit d8d1d78
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -232,6 +232,9 @@ internal IEnumerable<Assembly> GetAssembly(string namespaceQualifiedTypeName)
/// |
/// |--- 'osx-x64' subfolder
/// | |--- native.dylib
/// |
/// |--- 'osx-arm64' subfolder
/// | |--- native.dylib
/// </summary>
internal static IntPtr NativeDllHandler(Assembly assembly, string libraryName)
{
Expand Down Expand Up @@ -552,7 +555,7 @@ private static string GetNativeDllSubFolderName(out string ext)
}
else if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
{
folderName = "osx-x64";
folderName = "osx-" + processArch;
ext = ".dylib";
}

Expand Down

0 comments on commit d8d1d78

Please sign in to comment.