Closed KOLANICH closed 3 years ago
I went ahead and fixed mingw support in 16d2a25. Just use msys2 or something, similar procedure to building something like FFmpeg. Install libraries via pacman, there's no need to compile libdeflate as a dll or similar. Select your compiler using the shortcuts or using CC/CXX and keep -O2.
Of course, you can also use WSL2 or just msvc. I wouldn't expect better performance from mingw64.
-[Unknown]
This issue is mostly documenting the easiest way to build the projects in its current state on 64-bit Windows for usage on the same machine using MinGW-w64. The maintainer of this repo may want to integrate the stuff from this issue, but IMHO the right way is not to rely on makefiles, but use CMake.
To build using MinGW-w64 one needs:
-march=native
is for building on 64-bit machines for an own machine. It was the easiest way to make it compile for x86-64 without remembering the exact arg. It doesn't necessarily imply the best performance, I have done some kind of micro-researh, it has showed that sometimes the best performance is achieved when one compiles for an ancient CPUs of the same vendor.