forked from pyrite-dev/milsko
document tiny flag; have it use flto on clang
This commit is contained in:
parent
a00d4ba144
commit
cce41b32b8
2 changed files with 12 additions and 0 deletions
8
doc/TINYCONFIG.md
Normal file
8
doc/TINYCONFIG.md
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
# 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue