Skip to content

Commit

Permalink
[#735] Set BLST_PORTABLE env var on correct stage
Browse files Browse the repository at this point in the history
Problem: Since
[!8631](https://gitlab.com/tezos/tezos/-/merge_requests/8631),
ocaml-bls12-381 library was moved into tezos/tezos tree, so
BLST_PORTABLE set for deps build was ignored.

Solution: Set it for tezos build.
  • Loading branch information
krendelhoff2 committed Oct 20, 2023
1 parent 023381e commit 76b1cd5
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 0 additions & 3 deletions docker/build/build-deps.sh
Original file line number Diff line number Diff line change
@@ -6,8 +6,5 @@
set -euo pipefail

source "$HOME/.cargo/env"
# Disable usage of instructions from the ADX extension to avoid incompatibility
# with old CPUs, see https://gitlab.com/dannywillems/ocaml-bls12-381/-/merge_requests/135/
export BLST_PORTABLE="yes"
opam init --bare --disable-sandboxing
make build-deps
3 changes: 3 additions & 0 deletions docker/build/build-tezos.sh
Original file line number Diff line number Diff line change
@@ -8,5 +8,8 @@
set -euo pipefail

eval "$(opam env)"
# Disable usage of instructions from the ADX extension to avoid incompatibility
# with old CPUs, see https://gitlab.com/dannywillems/ocaml-bls12-381/-/merge_requests/135/
export BLST_PORTABLE="yes"
make static
chmod +w octez-*

0 comments on commit 76b1cd5

Please sign in to comment.