Page MenuHomePhabricator

[CMAKE] Add an option to reduce exports
ClosedPublic

Authored by Fabien on May 7 2019, 12:04.

Details

Summary

Port of configure option --enable-reduce-exports.
This tries to reduce the amount of symbols which are exported in the
application binary.

Test Plan
mkdir buildcmake && cd buildcmake
cmake -DENABLE_REDUCE_EXPORTS=OFF -GNinja ..
ninja
../contrib/devtools/symbol-check.py src/bitcoind | wc -l

Note the output of the last command.

rm -rf *
cmake -DENABLE_REDUCE_EXPORTS=ON -GNinja ..
ninja
../contrib/devtools/symbol-check.py src/bitcoind | wc -l

The quantity of line should be greatly reduced (244 => 123 on my
machine)

Diff Detail

Repository
rABC Bitcoin ABC
Branch
cmake_reduce_exports
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 5725
Build 9512: Bitcoin ABC Buildbot (legacy)
Build 9511: arc lint + arc unit