matyalatte / tuw

Tiny GUI wrapper for command-line tools
MIT License
30 stars 2 forks source link

Support Universal CRT for Windows 10 or later #29

Closed matyalatte closed 6 months ago

matyalatte commented 6 months ago

From Windows10, many vcruntime functions moved to a preinstalled library: Universal CRT. It means, you can make portable binaries smaller with the dynamic linked UCRT.

In tuw project, you can use -Duse_ucrt=true option to build tuw with UCRT. The built binary only supports Windows10 or later, but it has half the size of v0.6.3.