tock / libtock-rs

Rust userland library for Tock
Apache License 2.0
160 stars 105 forks source link

Fix Makefile race conditions. #520

Closed jrvanwhy closed 7 months ago

jrvanwhy commented 8 months ago

This PR fixes two race conditions in libtock-rs' Makefile:

  1. Running e.g. make -j2 hail flash-hail EXAMPLE=console will cause concurrent cargo run invocations that race (another variant of #366). This was fixed by changing the target directories for the flash-* targets.
  2. Running make -j2 test with a missing toolchain can result in parallel toolchain installs, which corrupts the toolchain.

I also fixed make clean, which wasn't cleaning up the nightly toolchain's target directory.