faithfracture / Apple-Boost-BuildScript

Script for building Boost for Apple platforms (iOS, iOS Simulator, tvOS, tvOS Simulator, OS X)
279 stars 111 forks source link

Add sources thinning using Boost BCP #69

Closed guillaumealgis closed 2 years ago

guillaumealgis commented 3 years ago

This creates a smaller xcframework by removing unneeded dependencies.

See https://www.boost.org/doc/libs/1_76_0/tools/bcp/doc/html/index.html

👀 If anyone want to take a look, I'd be happy to have another pair of eyes and feedback on this.


On Boost 1.76.0 with the default libraries of the script (atomic chrono date_time exception filesystem program_options random system thread test), this reduces the size of the created xcframework by 15,61%.

On a smaller boost build ('thread' only), this reduces the size by 67,39%.