HomePhabricator

[CMAKE] Use native strip on OSX

Description

[CMAKE] Use native strip on OSX

Summary:
This will allow for running the install/strip target when cross building
for OSX.

Test Plan:

mkdir buildcmake && cd buildcmake
mkdir install
cmake -GNinja .. DCMAKE_INSTALL_PREFIX=install \
  -DCMAKE_TOOLCHAIN_FILE=../cmake/platforms/OSX.cmake
ninja install/strip

Check the executables are stripped (compare the size vs non stripped).

Reviewers: #bitcoin_abc, deadalnix, jasonbcox

Reviewed By: #bitcoin_abc, jasonbcox

Differential Revision: https://reviews.bitcoinabc.org/D4378

Details

Provenance
FabienAuthored on Nov 5 2019, 09:39
deadalnixPushed on Nov 6 2019, 16:05
Reviewer
Restricted Project
Differential Revision
D4378: [CMAKE] Use native strip on OSX
Parents
rSTAGING68a51c880e22: build: depends: Switch to python3
Branches
Unknown
Tags
Unknown
References
tag: phabricator/base/13969