Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(c-api) Reduce the number of dependencies by statically compiling…
… CRT. This patch adds the `-Ctarget-feature=+crt-static` flag when compiling `libwasmer` on Windows. The goal is twofold: Reducing the number of dependencies, and improving the portability of `libwasmer.dll` on more Windows instances. Before: ```sh $ objdump --all-headers wasmer.dll | rg 'DLL Name' DLL Name: bcrypt.dll DLL Name: ADVAPI32.dll DLL Name: KERNEL32.dll DLL Name: VCRUNTIME140.dll DLL Name: api-ms-win-crt-heap-l1-1-0.dll DLL Name: api-ms-win-crt-runtime-l1-1-0.dll DLL Name: api-ms-win-crt-math-l1-1-0.dll DLL Name: api-ms-win-crt-string-l1-1-0.dll ``` After: ```sh $ objdump --all-headers wasmer.dll | rg 'DLL Name' DLL Name: bcrypt.dll DLL Name: ADVAPI32.dll DLL Name: KERNEL32.dll ```
- Loading branch information