PABannier / encodec.cpp

Port of Meta's Encodec in C/C++
187 stars 15 forks source link

fixes for MSVC windows compilation #32

Closed bachittle closed 8 months ago

bachittle commented 8 months ago

In GGML, the GGML_OP_COUNT parameter needed to be increased, as it was exceeding its limit. Mac and Linux compilers like GCC and clang must fix this at compile time, but MSVC throws an error. Just incrementing the number to what we need fixes this.

Finally, it was also compiling as a .dll, not as a .lib, with Windows CMake, so adding the static keyword fixes this. Everything should still compile under Linux, we'll see if the CI you added proves this.