Skip to content
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

Enable building on ARM and MacOS #36

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

Groxan
Copy link

@Groxan Groxan commented Aug 16, 2024

This PR proposes adjustments to the BUILD files and minor fixes to the codebase to enable building on ARM and MacOS, that helps to reduce requirements for the dev environment and therefore significantly improve dev experience.

The following notable changes have been done:

  • Migrated from the Bazel 5.4.0 with the old WORKSPACE mechanism to the latest Bazel 7.2.1 with Bzlmod, Bazel's new modular external dependency management system that enables more efficient dependency and toolchain resolution;
  • Made use of Bazelisk, which is the recommended way to work with Bazel, because it simplifies installation and allows to easily switch between different versions when you work on multiple projects that use different versions of Bazel;
  • Improved Dockerfile and dependency installation: moved all deps into a single script and removed unused deps;
  • Bumped LLVM to 17.0.6, mainly because 12.0.0 doesn't have precompiled binaries for MacOS;
  • Added Blake2s implementation optimized for ARM.

Here is how you can try it on Linux x86/ARM and MacOS x86/ARM:

git clone https://github.com/baking-bad/stone-prover
cd stone-prover
./install_deps.sh
bazelisk build //...
bazelisk test //...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants