android - How to reduce the size of a C++ static library -
i'm developing cross-platform static c++ library , wondering if there build flags reducing size of final mylib.lib , libmylib.a files on each platform (ios, android, windows)?
i understand every single dependency gets pulled build process , file size coming from.
but shouldn't there way have linker/librarian remove code mylib based on dependency calls made rather theoretically possible?
the linker when building final .executable, seems same rules apply @ library linking level.
overall big problem me because cross-platform library around 500mb windows , around 200mb on ios. oddly, android reasonable 3.5mb.
Comments
Post a Comment