Skip to content

Commit

Permalink
feat: use --compiler wasm
Browse files Browse the repository at this point in the history
  • Loading branch information
alexghr committed Oct 27, 2023
1 parent 33147f4 commit 860cc32
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion yarn-project/cli/aztec-cli
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ function add_mount() {

# we need to look at which command was run in order to set up mount points
AZTEC_CLI_COMMAND="$1"
AZTEC_CLI_EXTRA_ARGS=""

# first process commands with positional arguments
# assumes positional arguments are the first thing
Expand Down Expand Up @@ -142,6 +143,10 @@ if [[ "$AZTEC_CLI_COMMAND" == "compile" || "$AZTEC_CLI_COMMAND" == "call" || "$A
done
fi

if [[ "$AZTEC_CLI_COMMAND" == "compile" ]]; then
AZTEC_CLI_EXTRA_ARGS="$AZTEC_CLI_EXTRA_ARGS --compiler wasm"
fi

DOCKER_ENV="$DOCKER_ENV -e PXE_URL=$PXE_URL"

# pass along any private keys
Expand All @@ -158,7 +163,7 @@ DOCKER_CMD="$DOCKER_PATH run \
$DOCKER_HOST \
$DOCKER_ENV \
$DOCKER_VOLUME \
$CLI_IMAGE:$CLI_VERSION $@"
$CLI_IMAGE:$CLI_VERSION $@ $AZTEC_CLI_EXTRA_ARGS"

if [ ! -z "${DEBUG:-}" ]; then
echo "----"
Expand Down

0 comments on commit 860cc32

Please sign in to comment.