boundless-forest
boundless-forest

Reputation: 427

How to clean up substrate runtime compiled result and compile again

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

Upvotes: 0

Views: 164

Answers (2)

Ayoung
Ayoung

Reputation: 23

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

Upvotes: 0

Dan Forbes
Dan Forbes

Reputation: 2824

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

Upvotes: 1

Related Questions