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.