Skip to content

Commit

Permalink
chore: update compile script
Browse files Browse the repository at this point in the history
  • Loading branch information
TomAFrench committed Sep 12, 2023
1 parent 064acba commit bf5785e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions yarn-project/noir-contracts/scripts/compile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,15 @@ build() {
CONTRACT_NAME=$1
CONTRACT_FOLDER="${CONTRACT_NAME}_contract"
echo "Compiling $CONTRACT_NAME..."
cd src/contracts/$CONTRACT_FOLDER
rm -f target/*


# If the compilation fails, rerun the compilation with 'nargo' and show the compiler output.
nargo compile --output-debug;
nargo compile --package $CONTRACT_FOLDER --output-debug;
}

echo "Using $(nargo --version)"

# Build contracts
rm -f target/*
for CONTRACT_NAME in "$@"; do
build $CONTRACT_NAME &
pids+=($!)
Expand Down

0 comments on commit bf5785e

Please sign in to comment.