chiark / gitweb /
Makefile: pass cargo --workspace, (nearly) always
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 30 Jan 2021 14:33:39 +0000 (14:33 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 30 Jan 2021 14:39:46 +0000 (14:39 +0000)
commit383ee701980eeaebfda67286d32a7439537ee3e0
tree8714ce094def023164782524f1b2c10d792c1d81
parentc9b5a88d7a33a6e1eac22736be0a38c6815e1706
Makefile: pass cargo --workspace, (nearly) always

This seems to work around
  https://github.com/rust-lang/cargo/issues/9114
  https://github.com/rust-lang/cargo/issues/9114

The WASM call doesn't have it because (i) we want that to be minimal
(ii) there's only the one call to cargo for that architecture.

Build times:

  touch src/updates.rs; (time make -j12 wdt) 2>&1 |ts -s %.s
    before 26s    after 19s

  touch src/updates.rs; (time make -j12) 2>&1 |ts -s %.s
    before 33s    after 27s

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Makefile