From e99805ff817fd17051cd6b7997e9ce25c4846147 Mon Sep 17 00:00:00 2001 From: Ashutosh Mehra Date: Thu, 12 Dec 2019 10:39:46 -0500 Subject: [PATCH] Add jitserver launcher in OpenJ9 builds If --enable-jitserver configuration option is set, then enable building of jitserver launcher and include it in the jre or jdk. Signed-off-by: Ashutosh Mehra --- closed/OpenJ9.gmk | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/closed/OpenJ9.gmk b/closed/OpenJ9.gmk index b4eb32f3e6c..c69815fd875 100644 --- a/closed/OpenJ9.gmk +++ b/closed/OpenJ9.gmk @@ -1,5 +1,5 @@ # =========================================================================== -# (c) Copyright IBM Corp. 2017, 2019 All Rights Reserved +# (c) Copyright IBM Corp. 2017, 2020 All Rights Reserved # =========================================================================== # This code is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License version 2 only, as @@ -86,6 +86,22 @@ endif stage_openj9_build_jdk \ # +# jitserver + +ifeq (true,$(OPENJ9_ENABLE_JITSERVER)) +$(eval $(call SetupCopyFiles,OPENJ9_STAGED_FILES, \ + DEST := $(JDK_OUTPUTDIR)/bin, \ + SRC := $(OPENJ9_VM_BUILD_DIR), \ + FILES := jitserver$(EXE_SUFFIX) \ + )) + +$(eval $(call SetupCopyFiles,OPENJ9_STAGED_FILES, \ + DEST := $(JDK_OUTPUTDIR)/jre/bin, \ + SRC := $(OPENJ9_VM_BUILD_DIR), \ + FILES := jitserver$(EXE_SUFFIX) \ + )) +endif # OPENJ9_ENABLE_JITSERVER + # redirector $(foreach subdir, j9vm server, \ @@ -323,6 +339,13 @@ else SPEC_SED_SCRIPT += $(call SedDisable,module_ddr) endif +# Adjust JITServer enablement flags. +ifeq (true,$(OPENJ9_ENABLE_JITSERVER)) + FEATURE_SED_SCRIPT += $(call SedEnable,build_jitserver) +else + FEATURE_SED_SCRIPT += $(call SedDisable,build_jitserver) +endif + # openj9_stage_buildspec_file # --------------------------- # param 1 = The simple name of the file to copy.