Binaries increased in size with new glfw version

I built the tutorial (https://www.glfw.org/documentation.html) statically. It is 141 KB with 3.2.1, and 297 KB with 3.3.2. This is not a big issue for me, just a heads up.

build details: g++ main.cpp -ob -std=c++20 -lglfw3 -lgdi32 -lwinmm -static -Ofast -DNDEBUG -fno-exceptions -fno-rtti -s -march=native -flto
With mingw-w64, and glad as loader.

Most of it probably comes from this file: https://github.com/glfw/glfw/blob/master/src/mappings.h

1 Like