From 48b2d6adccee986390c923ff1acb4dd101a05595 Mon Sep 17 00:00:00 2001 From: Michael Meeks Date: Mon, 8 Oct 2012 20:44:54 +0100 Subject: [PATCH] use icerun to avoid compilation process explosions using icecream. Change-Id: I3539bfcfbbb43f44a6fc8fae60bda84267938116 --- config_host.mk.in | 1 + configure.in | 11 +++++++++++ solenv/gbuild/JavaClassSet.mk | 2 +- 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/config_host.mk.in b/config_host.mk.in index 251847ee4ee3..eaf0d61986a6 100644 --- a/config_host.mk.in +++ b/config_host.mk.in @@ -254,6 +254,7 @@ export HUNSPELL_CFLAGS=@HUNSPELL_CFLAGS@ export HUNSPELL_LIBS=@HUNSPELL_LIBS@ export HYPHEN_LIB=@HYPHEN_LIB@ export HYPH_SYSTEM_DIR=@HYPH_SYSTEM_DIR@ +export ICECREAM_RUN=@ICECREAM_RUN@ export ICU_MAJOR=@ICU_MAJOR@ export ICU_MICRO=@ICU_MICRO@ export ICU_MINOR=@ICU_MINOR@ diff --git a/configure.in b/configure.in index 169d994f87c7..8d1f90444a58 100644 --- a/configure.in +++ b/configure.in @@ -12614,6 +12614,17 @@ fi AC_MSG_RESULT([$BUILD_MAX_JOBS]) AC_SUBST(BUILD_MAX_JOBS) +dnl =================================================================== +dnl icerun is a wrapper that stops us spawning tens of processes +dnl locally - for tools that can't be executed on the compile cluster +dnl this avoids a dozen javac's ganging up on your laptop to kill it. +dnl =================================================================== +ICECREAM_RUN= +if test "$enable_icecream" = "yes"; then + ICECREAM_RUN=icerun +fi +AC_SUBST(ICECREAM_RUN) + # ===================================================================== # determine the parallelism for gnu make # ===================================================================== diff --git a/solenv/gbuild/JavaClassSet.mk b/solenv/gbuild/JavaClassSet.mk index 3f65099802f7..b5b743995e50 100644 --- a/solenv/gbuild/JavaClassSet.mk +++ b/solenv/gbuild/JavaClassSet.mk @@ -26,7 +26,7 @@ # #************************************************************************* -gb_JavaClassSet_JAVACCOMMAND := $(JAVACOMPILER) $(JAVAFLAGS) \ +gb_JavaClassSet_JAVACCOMMAND := $(ICECREAM_RUN) $(JAVACOMPILER) $(JAVAFLAGS) \ -source $(JAVA_SOURCE_VER) -target $(JAVA_TARGET_VER) gb_JavaClassSet_JAVACDEBUG :=