How to clean up substrate runtime compiled result and compile again

164 Views Asked by At

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

2

There are 2 best solutions below

2
On BEST ANSWER

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

0
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