mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Fix native library loading for osx-arm64 (#17365)
This commit is contained in:
@@ -232,6 +232,9 @@ namespace System.Management.Automation
|
||||
/// |
|
||||
/// |--- 'osx-x64' subfolder
|
||||
/// | |--- native.dylib
|
||||
/// |
|
||||
/// |--- 'osx-arm64' subfolder
|
||||
/// | |--- native.dylib
|
||||
/// </summary>
|
||||
internal static IntPtr NativeDllHandler(Assembly assembly, string libraryName)
|
||||
{
|
||||
@@ -552,7 +555,7 @@ namespace System.Management.Automation
|
||||
}
|
||||
else if (Platform.IsMacOS)
|
||||
{
|
||||
folderName = "osx-x64";
|
||||
folderName = "osx-" + processArch;
|
||||
ext = ".dylib";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user