Page MenuHomePhabricator

[CMAKE] Add an option to reduce exports
ClosedPublic

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

Details

Reviewers
deadalnix
jasonbcox
Group Reviewers
Restricted Project
Commits
rABC8808e31743fb: [CMAKE] Add an option to reduce exports
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
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

Fabien created this revision.Tue, May 7, 12:04
Herald added a reviewer: Restricted Project. · View Herald TranscriptTue, May 7, 12:04
jasonbcox accepted this revision.Wed, May 8, 21:28
This revision is now accepted and ready to land.Wed, May 8, 21:28
This revision was automatically updated to reflect the committed changes.