-
Notifications
You must be signed in to change notification settings - Fork 121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update OSX CI and other dependencies #536
Conversation
Fixes #6006, #6296
@daira identified an error in zeromq/libzmq#4494 that we reproduced in zcash/zcash#6393. This adds @daira's patch from zeromq/libzmq#4507 to ensure we handle this potential case of undefined behavior. Co-authored-by: Daira Hopwood <[email protected]>
This is needed to fix the CI on recent OSX systems. For reference, see rust-lang/cargo#8603.
Instead of compiling ourselves the build tools needed (e.g. cmake, autotools), check that such tools are available in the given image and use those.
In addition to removing an unnecessary dependency on boost, this also helps fixing compilation errors with recent gtest.
This commit also fixes inconsistencies in the compilation flags for different static libraries used in the same output binary.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks good to me, great job, thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left a couple of non-blocking comments, and everything looks great to me. High quality PR which introduces many improvements!
5e96b64
to
c3756ee
Compare
The main goal of this PR is to fix compilation on/for recent macOS versions, which becomes necessary after Boost update to version 1.81.
macOS binaries compiled after this PR only will be compatible with macOS version 10.14 (
Mojave
) or newer.In order to achieve such a goal, we:
xcode12.3
image, which includes macOS 11.1 and Xcode 12.3This PR also includes a number of other improvements. Specifically, we:
zencash-apple
repository altogether, since now the prefer the build tools provided by travis imagesboost::optional
tostd::optional
(fixing errors with recent gtest)Make
-O3
optimization level for all release builds (linux, mingw, and osx)