Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion make/Main.gmk
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,17 @@ ALL_TARGETS += generate-exported-symbols
# When creating a BUILDJDK, the java targets have already been built and copied
# into the buildjdk so no need to generate sources.
ifneq ($(CREATING_BUILDJDK), true)
GENERATE_BUILDJDK_SOURCES := true
else ifeq ($(OPENJDK_TARGET_OS)+$(COMPILE_TYPE), windows+cross)
# Windows AArch64 is built by cross compiling. Therefore, the buildjdk sources
# need to be generated unconditionally to avoid a 'No rule to make target
# windows/conf/tzmappings' error
GENERATE_BUILDJDK_SOURCES := true
else
GENERATE_BUILDJDK_SOURCES :=
endif

ifeq ($(GENERATE_BUILDJDK_SOURCES), true)
$(eval $(call DeclareRecipesForPhase, GENSRC, \
TARGET_SUFFIX := gensrc-src, \
FILE_PREFIX := Gensrc, \
Expand Down Expand Up @@ -765,7 +776,7 @@ else
# Skip modules that do not have java source.
# When creating a BUILDJDK, the java compilation has already been done by the
# normal build and copied in.
ifneq ($(CREATING_BUILDJDK), true)
ifeq ($(GENERATE_BUILDJDK_SOURCES), true)
$(foreach m, $(filter $(JAVA_MODULES), $(LIBS_MODULES)), $(eval $m-libs: $m-java))
endif

Expand Down