diff options
author | est31 <MTest31@outlook.com> | 2015-12-23 04:51:09 +0100 |
---|---|---|
committer | est31 <MTest31@outlook.com> | 2015-12-23 06:17:42 +0100 |
commit | 98d16e0d9a945f5f48462c05f26ae4bde2db5731 (patch) | |
tree | c0d118f8f0256ab7af8328ee05b763c11e94bd23 /builtin/async | |
parent | 7eb3ed8b2a93bb28ebd2e581bf37e6487912d242 (diff) | |
download | minetest-98d16e0d9a945f5f48462c05f26ae4bde2db5731.tar.gz minetest-98d16e0d9a945f5f48462c05f26ae4bde2db5731.tar.bz2 minetest-98d16e0d9a945f5f48462c05f26ae4bde2db5731.zip |
Android: Tell make about sub-makes to speed up build
Before, sub-makes called by make were called without make knowing they
were sub-makes. This however led make's jobserver not do its tasks,
and the build process ended up with inefficient parralelisation. This
commit fixes this by applying the two ways the make manual tells
about: putting + to the start of the line (used when ndk-build is
invoked), and exchanging "make" with "$(MAKE)".
Before, make complained with messages like:
make[2]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule.
This complaint can now only been seen for openssl. openssl has issues
if make gets exchanged with $(MAKE): if exchanged, above error message
is multiplied for various subdirs of the openssl source tree.
On a 4 core box, "make -j 4" build time from "make clean_all" cleaned
source tree could be improved from 15:34 minutes to 10:45 minutes.
This means a speedup of 45%.
Diffstat (limited to 'builtin/async')
0 files changed, 0 insertions, 0 deletions