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 aa1a6ae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions yarn-project/noir-contracts/scripts/compile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ build() {
CONTRACT_NAME=$1
CONTRACT_FOLDER="${CONTRACT_NAME}_contract"
echo "Compiling $CONTRACT_NAME..."
cd src/contracts/$CONTRACT_FOLDER
rm -f target/*
rm -f target/${CONTRACT_FOLDER}-*
rm -f target/debug_${CONTRACT_FOLDER}-*

# 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)"
Expand Down

0 comments on commit aa1a6ae

Please sign in to comment.