Skip to content

Commit b33ff30

Browse files
committedAug 17, 2023
8313661: [REDO] Relax prerequisites for java.base-jmod target
Reviewed-by: alanb
1 parent 62ca001 commit b33ff30

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed
 

‎make/Main.gmk

+6-2
Original file line numberDiff line numberDiff line change
@@ -967,11 +967,15 @@ else
967967
jdk.compiler-gendata: $(GENSRC_MODULEINFO_TARGETS)
968968

969969
# Declare dependencies between jmod targets.
970-
# java.base jmod needs jrt-fs.jar and access to the other jmods to be built.
970+
# java.base jmod needs jrt-fs.jar and access to the jmods for all non
971+
# upgradeable modules and their transitive dependencies.
971972
# When creating the BUILDJDK, we don't need to add hashes to java.base, thus
972973
# we don't need to depend on all other jmods
973974
ifneq ($(CREATING_BUILDJDK), true)
974-
java.base-jmod: jrtfs-jar $(filter-out java.base-jmod, $(JMOD_TARGETS))
975+
java.base-jmod: jrtfs-jar $(addsuffix -jmod, $(filter-out java.base, $(sort \
976+
$(foreach m, $(filter-out $(call FindAllUpgradeableModules), $(JMOD_MODULES)), \
977+
$m $(call FindTransitiveDepsForModules, $m) \
978+
))))
975979
endif
976980

977981
# If not already set, set the JVM target so that the JVM will be built.

0 commit comments

Comments
 (0)
Please sign in to comment.