davispuh / ffi-compiler

Apache License 2.0
0 stars 1 forks source link

Load library order #2

Closed alexeymorozov closed 4 years ago

alexeymorozov commented 4 years ago

Fixes load of a wrong library file on Windows. Previously on x86_64 it took the first file, which is wrong:

libmspack-0.1.0/ext/i386-windows/libmspack.dll
libmspack-0.1.0/ext/x86_64-windows/libmspack.dll

See https://github.com/davispuh/ruby-libmspack/issues/1

davispuh commented 4 years ago

This is exactly how I would have implemented it :smile: nice :+1: You also should submit this against https://github.com/ffi/ffi-compiler maybe we'll finally get a release there.