Do not limit threads upon calling legacy GNU make
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>
diff --git a/main.cc b/main.cc
index 2627bfd..c47887e 100644
--- a/main.cc
+++ b/main.cc
@@ -88,7 +88,7 @@
);
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());