openwrt-packages/lang/rust
Jeffery To 0dfc1b508d
rust: Use make's jobserver when building packages
This allows cargo to use make's jobserver when building packages, by
marking the cargo command as recursive (with the + prefix[1]) and
setting MAKEFLAGS.

This also:

* Give cargo/x.py the build directory instead of having to change the
  current directory (and opening subshells)

* Set PKG_BUILD_PARALLEL/HOST_BUILD_PARALLEL for Rust packages to enable
  the use of make's jobserver

[1]: https://www.gnu.org/software/make/manual/html_node/POSIX-Jobserver.html

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-10-11 15:50:24 +08:00
..
patches rust: Cache bootstrap downloads to $(DL_DIR)/rustc 2023-10-11 15:50:22 +08:00
Makefile rust: Use make's jobserver when building packages 2023-10-11 15:50:24 +08:00
rust-host-build.mk rust: Use make's jobserver when building packages 2023-10-11 15:50:24 +08:00
rust-package.mk rust: Use make's jobserver when building packages 2023-10-11 15:50:24 +08:00
rust-values.mk rust: Consolidate cargo environment variables 2023-10-11 15:50:23 +08:00