make/common/shared/Defs-java.gmk

Print this page




 162 #   will use the ALT_BOOTDIR java runtime. Any classes created by the
 163 #   LANGTOOLS_DIST javac should not be run during this jdk build and indeed
 164 #   may not even run with the ALT_BOOTDIR jdk because they may be a newer
 165 #   class file version that the ALT_BOOTDIR jdk doesn't understand.
 166 #
 167 # The important observation here is that the built jdk is NOT run during
 168 #   the build. If the built jdk needs to be verified that it can build this
 169 #   same jdk, then it should be supplied to the build process as the ALT_BOOTDIR
 170 #   jdk, and this resulting built jdk should be compared to the first one.
 171 #   (They should be the same). Re-using this built jdk as the ALT_BOOTDIR
 172 #   jdk will be the only way and the recommeneded way to verify the built jdk
 173 #   can bootstrap itself.
 174 #
 175 
 176 # The javac options supplied to the boot javac is limited. This compiler
 177 #   should only be used to build the 'make/tools' sources, which are not
 178 #   class files that end up in the classes directory.
 179 ifeq ($(COMPILER_WARNINGS_FATAL), true)
 180   BOOT_JAVACFLAGS  += -Werror
 181 endif
 182 BOOT_JAVACFLAGS  += -encoding ascii


 183 
 184 BOOT_JAVA_CMD      = $(BOOTDIR)/bin/java $(JAVA_TOOLS_FLAGS)
 185 BOOT_JAVAC_CMD     = $(BOOTDIR)/bin/javac $(JAVAC_JVM_FLAGS) $(BOOT_JAVACFLAGS)
 186 BOOT_JAR_CMD       = $(BOOTDIR)/bin/jar
 187 BOOT_JARSIGNER_CMD = $(BOOTDIR)/bin/jarsigner
 188 
 189 # Various tools we need to run (FIXUP: Are these the right ones?)
 190 NATIVE2ASCII    = $(BOOTDIR)/bin/native2ascii $(JAVA_TOOLS_FLAGS:%=-J%)
 191 RMIC            = $(BOOTDIR)/bin/rmic $(JAVA_TOOLS_FLAGS:%=-J%)
 192 IDLJ            = $(BOOTDIR)/bin/idlj $(JAVA_TOOLS_FLAGS:%=-J%)
 193 
 194 # Should not be used
 195 JAVA            = /should/not/be/used
 196 


 162 #   will use the ALT_BOOTDIR java runtime. Any classes created by the
 163 #   LANGTOOLS_DIST javac should not be run during this jdk build and indeed
 164 #   may not even run with the ALT_BOOTDIR jdk because they may be a newer
 165 #   class file version that the ALT_BOOTDIR jdk doesn't understand.
 166 #
 167 # The important observation here is that the built jdk is NOT run during
 168 #   the build. If the built jdk needs to be verified that it can build this
 169 #   same jdk, then it should be supplied to the build process as the ALT_BOOTDIR
 170 #   jdk, and this resulting built jdk should be compared to the first one.
 171 #   (They should be the same). Re-using this built jdk as the ALT_BOOTDIR
 172 #   jdk will be the only way and the recommeneded way to verify the built jdk
 173 #   can bootstrap itself.
 174 #
 175 
 176 # The javac options supplied to the boot javac is limited. This compiler
 177 #   should only be used to build the 'make/tools' sources, which are not
 178 #   class files that end up in the classes directory.
 179 ifeq ($(COMPILER_WARNINGS_FATAL), true)
 180   BOOT_JAVACFLAGS  += -Werror
 181 endif
 182 BOOT_SOURCE_LANGUAGE_VERSION = 6
 183 BOOT_TARGET_CLASS_VERSION = 6
 184 BOOT_JAVACFLAGS  += -encoding ascii -source $(BOOT_SOURCE_LANGUAGE_VERSION) -target $(BOOT_TARGET_CLASS_VERSION)
 185 
 186 BOOT_JAVA_CMD      = $(BOOTDIR)/bin/java $(JAVA_TOOLS_FLAGS)
 187 BOOT_JAVAC_CMD     = $(BOOTDIR)/bin/javac $(JAVAC_JVM_FLAGS) $(BOOT_JAVACFLAGS)
 188 BOOT_JAR_CMD       = $(BOOTDIR)/bin/jar
 189 BOOT_JARSIGNER_CMD = $(BOOTDIR)/bin/jarsigner
 190 
 191 # Various tools we need to run (FIXUP: Are these the right ones?)
 192 NATIVE2ASCII    = $(BOOTDIR)/bin/native2ascii $(JAVA_TOOLS_FLAGS:%=-J%)
 193 RMIC            = $(BOOTDIR)/bin/rmic $(JAVA_TOOLS_FLAGS:%=-J%)
 194 IDLJ            = $(BOOTDIR)/bin/idlj $(JAVA_TOOLS_FLAGS:%=-J%)
 195 
 196 # Should not be used
 197 JAVA            = /should/not/be/used
 198