milsko/doc/TINYCONFIG.md
IoI_xD cce41b32b8
All checks were successful
pyrite-dev/milsko/pipeline/head This commit looks good
document tiny flag; have it use flto on clang
2026-03-31 17:15:25 -07:00

395 B

Tiny Config

Milsko's configure script supports the --tiny option for building the tiniest possible Milsko library (~400kb as of writing). Currently, what it does is:

  • Add -Oz to the cflags
  • (clang only) add -flto=thin to the cflags and linker flags
  • Build stb-image with STB_IMAGE_STATIC (this is why you get warnings with stb_image when you use it)
  • Disable the Wayland backend