811 ExecuteWithLog = \
812 $(call LogCmdlines, Exececuting: [$(strip $2)]) \
813 $(call WriteFile, $2, $(strip $1).cmdline) \
814 ( $(strip $2) > >($(TEE) $(strip $1).log) 2> >($(TEE) $(strip $1).log >&2) || \
815 ( exitcode=$(DOLLAR)? && \
816 $(CP) $(strip $1).log $(MAKESUPPORT_OUTPUTDIR)/failure-logs/$(subst /,_,$(patsubst $(BUILD_OUTPUT)/%,%,$(strip $1))).log && \
817 exit $(DOLLAR)exitcode ) )
818
819 ################################################################################
820 # Find lib dir for module
821 # Param 1 - module name
822 ifeq ($(OPENJDK_TARGET_OS_TYPE), unix)
823 FindLibDirForModule = \
824 $(SUPPORT_OUTPUTDIR)/modules_libs/$(strip $1)$(OPENJDK_TARGET_CPU_LIBDIR)
825 else
826 FindLibDirForModule = \
827 $(SUPPORT_OUTPUTDIR)/modules_libs/$(strip $1)
828 endif
829
830 ################################################################################
831 # Return a string suitable for use after a -classpath or -modulepath option. It
832 # will be correct and safe to use on all platforms. Arguments are given as space
833 # separate classpath entries. Safe for multiple nested calls.
834 # param 1 : A space separated list of classpath entries
835 # The surrounding strip is needed to keep additional whitespace out
836 PathList = \
837 "$(subst $(SPACE),$(PATH_SEP),$(strip $(subst $(DQUOTE),,$1)))"
838
839 ################################################################################
840 # Check if a specified hotspot variant is being built, or at least one of a
841 # list of variants. Will return 'true' or 'false'.
842 # $1 - the variant to test for
843 check-jvm-variant = \
844 $(strip \
845 $(if $(filter-out $(VALID_JVM_VARIANTS), $1), \
846 $(error Internal error: Invalid variant tested: $1)) \
847 $(if $(filter $1, $(JVM_VARIANTS)), true, false))
848
849 ################################################################################
850 # Converts a space separated list to a comma separated list.
851 #
|
811 ExecuteWithLog = \
812 $(call LogCmdlines, Exececuting: [$(strip $2)]) \
813 $(call WriteFile, $2, $(strip $1).cmdline) \
814 ( $(strip $2) > >($(TEE) $(strip $1).log) 2> >($(TEE) $(strip $1).log >&2) || \
815 ( exitcode=$(DOLLAR)? && \
816 $(CP) $(strip $1).log $(MAKESUPPORT_OUTPUTDIR)/failure-logs/$(subst /,_,$(patsubst $(BUILD_OUTPUT)/%,%,$(strip $1))).log && \
817 exit $(DOLLAR)exitcode ) )
818
819 ################################################################################
820 # Find lib dir for module
821 # Param 1 - module name
822 ifeq ($(OPENJDK_TARGET_OS_TYPE), unix)
823 FindLibDirForModule = \
824 $(SUPPORT_OUTPUTDIR)/modules_libs/$(strip $1)$(OPENJDK_TARGET_CPU_LIBDIR)
825 else
826 FindLibDirForModule = \
827 $(SUPPORT_OUTPUTDIR)/modules_libs/$(strip $1)
828 endif
829
830 ################################################################################
831 # Return a string suitable for use after a -classpath or --module-path option. It
832 # will be correct and safe to use on all platforms. Arguments are given as space
833 # separate classpath entries. Safe for multiple nested calls.
834 # param 1 : A space separated list of classpath entries
835 # The surrounding strip is needed to keep additional whitespace out
836 PathList = \
837 "$(subst $(SPACE),$(PATH_SEP),$(strip $(subst $(DQUOTE),,$1)))"
838
839 ################################################################################
840 # Check if a specified hotspot variant is being built, or at least one of a
841 # list of variants. Will return 'true' or 'false'.
842 # $1 - the variant to test for
843 check-jvm-variant = \
844 $(strip \
845 $(if $(filter-out $(VALID_JVM_VARIANTS), $1), \
846 $(error Internal error: Invalid variant tested: $1)) \
847 $(if $(filter $1, $(JVM_VARIANTS)), true, false))
848
849 ################################################################################
850 # Converts a space separated list to a comma separated list.
851 #
|