Skip to content
This repository has been archived by the owner on Jun 21, 2023. It is now read-only.

Commit

Permalink
Fix binary size. (#382)
Browse files Browse the repository at this point in the history
Add compiler and linker options to reduce binary size for release build:
  - reduce symbol visibility: `-fvisibility=hidden`, `-fvisibility-inlines=hidden`;
  - link time optimization `-flto` and enable gold plugin;
  - remove duplicated code: `–icf=all`;
  - size optimization for compilation (`-Oz`);
  - garbage collect unused sections: `-Wl,--gc-sections`
  • Loading branch information
Igor Tarasov authored May 13, 2020
1 parent 2473dcc commit 05974e2
Showing 1 changed file with 201 additions and 197 deletions.
Loading

0 comments on commit 05974e2

Please sign in to comment.