Skip to content

Commit

Permalink
Copy configured values to relevant UMA properties in .spec files
Browse files Browse the repository at this point in the history
Signed-off-by: Keith W. Campbell <[email protected]>
  • Loading branch information
keithc-ca committed Jun 12, 2018
1 parent d587cde commit 2addc2f
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions closed/OpenJ9.gmk
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,18 @@ else
FEATURE_SED_SCRIPT := $(call SedDisable,opt_cuda)
endif

# Adjust .spec files replacing references to gcc-4.6. Openjdk requires 4.8.2 or newer.
SPEC_SED_SCRIPT := -e 's/gcc-4.6/gcc/g'
# Function to generate sed program fragment.
# $1 - name of make macro to use instead of a hard-coded tool reference.
# $2 - suffix of uma_make_cmd property name to be adjusted.
SedUmaCommand = -e '/<property name="uma_make_cmd_$(strip $2)"/s|value="[^"]*"|value="$($(strip $1))"|'

# Copy configured values to relevant UMA properties in .spec files.
SPEC_SED_SCRIPT := \
$(call SedUmaCommand, CC, cc) \
$(call SedUmaCommand, CXX, cxx) \
$(call SedUmaCommand, CXX, interp_gcc) \
$(call SedUmaCommand, CXX, ppc_gcc_cxx) \
#

# Adjust DDR enablement flags.
ifeq (true,$(OPENJ9_ENABLE_DDR))
Expand Down

0 comments on commit 2addc2f

Please sign in to comment.