How to clean up substrate runtime compiled result and compile again

155 views Asked by At

Now, The only way I used is cargo clean and then cargo build again.

2

There are 2 answers

2
Dan Forbes On BEST ANSWER

You can also delete the target directory that contains all the build artifacts.

0
Ayoung On

There's two way to have a clean compile:

  1. Remove directory target with following command if you using Mac or Linux

    rm -rf target

  2. Cargo clean and build with following command:

    cargo clean && cargo build --release