emosenkis / esp-rs

Script for installing/running toolchain for building ESP8266 firmware in Rust
MIT License
329 stars 19 forks source link

Build mrustc with parallelism #11

Closed luser closed 5 years ago

luser commented 6 years ago

Currently build.sh just runs make -f minicargo.mk which means it's not using more than one core. When writing scripts like this that are going to invoke make to build things I usually do something like export MAKEFLAGS=-j$(nproc) to use all available cores.

emosenkis commented 6 years ago

Can you send a pull request? Thanks!

thepowersgang commented 5 years ago

You'll want to call make -f minicargo.mk PARLEVEL=$(nproc) instead (which will tell minicaro to run multiple jobs). Beware thepowersgang/mrustc#98 (triggered by build scripts)