Skip to content

Commit

Permalink
use move compiler v2 for forge
Browse files Browse the repository at this point in the history
  • Loading branch information
aluon committed Oct 15, 2024
1 parent 2a0e7d6 commit 5353a14
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions docker/builder/build-tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,6 @@ for BIN in "${BINS[@]}"; do
done

# Build the Aptos Move framework and place it in dist. It can be found afterwards in the current directory.
echo "MOVE_COMPILER_V2: ${MOVE_COMPILER_V2:-not set}"
echo "Building the Aptos Move framework..."
(cd dist && cargo run --locked --profile=$PROFILE --package aptos-framework -- release)
2 changes: 2 additions & 0 deletions docker/builder/builder.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ RUN --mount=type=secret,id=GIT_CREDENTIALS,target=/root/.git-credentials \

FROM builder-base as tools-builder

ENV MOVE_COMPILER_V2=true

RUN --mount=type=secret,id=GIT_CREDENTIALS,target=/root/.git-credentials \
--mount=type=cache,target=/usr/local/cargo/git,id=tools-builder-cargo-git-cache \
--mount=type=cache,target=/usr/local/cargo/registry,id=tools-builder-cargo-registry-cache \
Expand Down

0 comments on commit 5353a14

Please sign in to comment.