Skip to content

Commit a44a470

Browse files
committed
8358515: make cmp-baseline is broken after JDK-8349665
Reviewed-by: erikj
1 parent cc11b7d commit a44a470

File tree

3 files changed

+16
-17
lines changed

3 files changed

+16
-17
lines changed

make/Init.gmk

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,18 @@ reconfigure:
110110
CUSTOM_CONFIG_DIR="$(CUSTOM_CONFIG_DIR)" \
111111
$(RECONFIGURE_COMMAND) )
112112

113-
.PHONY: print-modules print-targets print-tests print-configuration reconfigure
113+
# Create files that are needed to run most targets in Main.gmk
114+
create-make-helpers:
115+
( cd $(TOPDIR) && \
116+
$(MAKE) $(MAKE_ARGS) -j 1 -f make/GenerateFindTests.gmk \
117+
$(USER_MAKE_VARS) )
118+
( cd $(TOPDIR) && \
119+
$(MAKE) $(MAKE_ARGS) -j 1 -f make/Main.gmk $(USER_MAKE_VARS) \
120+
UPDATE_MODULE_DEPS=true NO_RECIPES=true \
121+
create-main-targets-include )
122+
123+
.PHONY: print-modules print-targets print-tests print-configuration \
124+
reconfigure create-make-helpers
114125

115126
##############################################################################
116127
# The main target. This will delegate all other targets into Main.gmk.
@@ -130,7 +141,7 @@ TARGET_DESCRIPTION := target$(if $(word 2, $(MAIN_TARGETS)),s) \
130141
# variables are explicitly propagated using $(USER_MAKE_VARS).
131142
main: MAKEOVERRIDES :=
132143

133-
main: $(INIT_TARGETS)
144+
main: $(INIT_TARGETS) create-make-helpers
134145
ifneq ($(SEQUENTIAL_TARGETS)$(PARALLEL_TARGETS), )
135146
$(call RotateLogFiles)
136147
$(ECHO) "Building $(TARGET_DESCRIPTION)" $(BUILD_LOG_PIPE_SIMPLE)
@@ -142,12 +153,7 @@ main: $(INIT_TARGETS)
142153
$(SEQUENTIAL_TARGETS) )
143154
# We might have cleaned away essential files, recreate them.
144155
( cd $(TOPDIR) && \
145-
$(MAKE) $(MAKE_ARGS) -j 1 -f make/GenerateFindTests.gmk \
146-
$(USER_MAKE_VARS) )
147-
( cd $(TOPDIR) && \
148-
$(MAKE) $(MAKE_ARGS) -j 1 -f make/Main.gmk $(USER_MAKE_VARS) \
149-
UPDATE_MODULE_DEPS=true NO_RECIPES=true \
150-
create-main-targets-include )
156+
$(MAKE) $(MAKE_ARGS) -j 1 -f make/Init.gmk create-make-helpers )
151157
endif
152158
ifneq ($(PARALLEL_TARGETS), )
153159
$(call PrepareFailureLogs)

make/Main.gmk

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -423,14 +423,6 @@ bootcycle-images:
423423
ifneq ($(COMPILE_TYPE), cross)
424424
$(call LogWarn, Boot cycle build step 2: Building a new JDK image using previously built image)
425425
$(call MakeDir, $(OUTPUTDIR)/bootcycle-build)
426-
# We need to create essential files for the bootcycle spec dir
427-
( cd $(TOPDIR) && \
428-
$(MAKE) $(MAKE_ARGS) -f make/GenerateFindTests.gmk \
429-
SPEC=$(BOOTCYCLE_SPEC))
430-
( cd $(TOPDIR) && \
431-
$(MAKE) $(MAKE_ARGS) -f $(TOPDIR)/make/Main.gmk \
432-
SPEC=$(BOOTCYCLE_SPEC) UPDATE_MODULE_DEPS=true NO_RECIPES=true \
433-
create-main-targets-include )
434426
+$(MAKE) $(MAKE_ARGS) -f $(TOPDIR)/make/Init.gmk PARALLEL_TARGETS=$(BOOTCYCLE_TARGET) \
435427
LOG_PREFIX="[bootcycle] " JOBS= SPEC=$(BOOTCYCLE_SPEC) main
436428
else

make/PreInit.gmk

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ include $(TOPDIR)/make/Global.gmk
5050

5151
# Targets provided by Init.gmk.
5252
ALL_INIT_TARGETS := print-modules print-targets print-configuration \
53-
print-tests reconfigure pre-compare-build post-compare-build
53+
print-tests reconfigure pre-compare-build post-compare-build \
54+
create-make-helpers
5455

5556
# CALLED_TARGETS is the list of targets that the user provided,
5657
# or "default" if unspecified.

0 commit comments

Comments
 (0)