forked from openkylin/platform_build
exec makeparallel
bash doesn't kill children when it receives SIGTERM. Since makeparallel is the last command run by the shell, run it with exec to replace the shell with makeparallel so make can send the signal directly to makeparallel. Bug: 31907490 Test: m -j & killall make; pgrep -a makeparallel Change-Id: If8aeb51ec224234da5f05eae3382ce77f48a57e2
This commit is contained in:
parent
647d383788
commit
a5471a6723
|
@ -148,7 +148,7 @@ $(sort $(DEFAULT_GOAL) $(ANDROID_GOALS)) : ninja_wrapper
|
|||
.PHONY: ninja_wrapper
|
||||
ninja_wrapper: $(COMBINED_BUILD_NINJA) $(MAKEPARALLEL)
|
||||
@echo Starting build with ninja
|
||||
+$(hide) export NINJA_STATUS="$(NINJA_STATUS)" && source $(KATI_ENV_SH) && $(NINJA_MAKEPARALLEL) $(NINJA) -d keepdepfile $(NINJA_GOALS) -C $(TOP) -f $(COMBINED_BUILD_NINJA) $(NINJA_ARGS)
|
||||
+$(hide) export NINJA_STATUS="$(NINJA_STATUS)" && source $(KATI_ENV_SH) && exec $(NINJA_MAKEPARALLEL) $(NINJA) -d keepdepfile $(NINJA_GOALS) -C $(TOP) -f $(COMBINED_BUILD_NINJA) $(NINJA_ARGS)
|
||||
|
||||
# Dummy Android.mk and CleanSpec.mk files so that kati won't recurse into the
|
||||
# out directory
|
||||
|
|
Loading…
Reference in New Issue