aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPark Ju Hyung <qkrwngud825@gmail.com>2016-12-14 22:38:49 +0900
committerRashed Abdel-Tawab <rashed@linux.com>2017-12-05 15:40:29 -0800
commitd13b8fa0333630167d5dfbf2247d8260d173c190 (patch)
treec207d70c45360f378c3276a807b11177bcd5ac70
parent51f78826f5d431981903ef82c51bdb868438717d (diff)
downloadandroid_build_kati-staging/lineage-15.1.tar.gz
android_build_kati-staging/lineage-15.1.tar.bz2
android_build_kati-staging/lineage-15.1.zip
Do not limit threads upon calling legacy GNU makestaging/lineage-15.1
Limiting legacy GNU make and making ninja run faster might sound ok, but on Android, huge amount of time is still being spent on GNU make. For example : limiting the threads to half causes huge slowdown to inline kernel builds. Unlock this limit and allow GNU make to fully utilize all CPU cores. Change-Id: Iacdcaac844c0e2d15830f5d96f8f8a3bd9f6ca5b Signed-off-by: Park Ju Hyung <qkrwngud825@gmail.com> (cherry picked from commit bc43789a938c10cb00b81ddf08239c1b4cea48bb)
-rw-r--r--main.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.cc b/main.cc
index a4df3c0..194ce01 100644
--- a/main.cc
+++ b/main.cc
@@ -88,7 +88,7 @@ static void ReadBootstrapMakefile(const vector<Symbol>& targets,
);
if (g_flags.generate_ninja) {
bootstrap += StringPrintf("MAKE?=make -j%d\n",
- g_flags.num_jobs <= 1 ? 1 : g_flags.num_jobs / 2);
+ g_flags.num_jobs <= 1 ? 1 : g_flags.num_jobs);
} else {
bootstrap += StringPrintf("MAKE?=%s\n",
JoinStrings(g_flags.subkati_args, " ").c_str());