adding dll resolving fix + gmp lib for osx-arm64

pull/8/head
Mateusz Jędrzejewski 2021-04-02 16:54:39 +02:00
parent 10fab81d41
commit 7589e1c933
2 changed files with 1 additions and 0 deletions

View File

@ -535,6 +535,7 @@ namespace MathGmp.Native
private static IntPtr _load_gmp_lib()
{
// Load GMP library and create safe handle to it.
NativeLibrary.SetDllImportResolver(typeof(gmp_lib).Assembly, NativeLib.ImportResolver);
IntPtr handle = NativeLib.ImportResolver(LibGmp, typeof(gmp_lib).Assembly, default);
// Retrieve and cache GMP dynamic memory allocation functions.
_get_memory_functions();