28 JAVADOC_JARS ?= "-Xbootclasspath/p:$(LANGTOOLS_OUTPUTDIR)/dist/bootstrap/lib/javadoc.jar" -jar $(LANGTOOLS_OUTPUTDIR)/dist/bootstrap/lib/javadoc.jar
29
30 DISABLE_WARNINGS:=-Xlint:all,-deprecation,-unchecked,-rawtypes,-cast,-serial,-dep-ann,-static,-fallthrough,-try,-varargs,-empty,-finally
31
32 # The generate old bytecode javac setup uses the new compiler to compile for the
33 # boot jdk to generate tools that need to be run with the boot jdk.
34 # Thus we force the target bytecode to 7.
35 $(eval $(call SetupJavaCompiler,GENERATE_OLDBYTECODE,\
36 JVM:=$(JAVA),\
37 JAVAC:=$(JAVAC_JARS),\
38 FLAGS:=-source 7 -target 7 -bootclasspath $(BOOT_RTJAR) $(DISABLE_WARNINGS),\
39 SERVER_DIR:=$(SJAVAC_SERVER_DIR),\
40 SERVER_JVM:=$(SJAVAC_SERVER_JAVA)))
41
42 # The generate new bytecode javac setup uses the new compiler to compile for the
43 # new jdk. This new bytecode might only be possible to run using the new jvm.
44 $(eval $(call SetupJavaCompiler,GENERATE_JDKBYTECODE,\
45 JVM:=$(JAVA),\
46 JAVAC:=$(JAVAC_JARS),\
47 JAVAH:=$(JAVAH_JARS),\
48 FLAGS:=-bootclasspath $(JDK_OUTPUTDIR)/classes -source 7 -target 7 -encoding ascii -XDignore.symbol.file=true $(DISABLE_WARNINGS),\
49 SERVER_DIR:=$(SJAVAC_SERVER_DIR),\
50 SERVER_JVM:=$(SJAVAC_SERVER_JAVA)))
51
52 # After the jdk is built, we want to build demos using only the recently
53 # generated jdk classes and nothing else, no jdk source, etc etc.
54 # I.e. the rt.jar, but since rt.jar has not yet been generated
55 # (it will be in "make images") therefore we use classes instead.
56 $(eval $(call SetupJavaCompiler,GENERATE_USINGJDKBYTECODE,\
57 JVM:=$(JAVA),\
58 JAVAC:=$(JAVAC_JARS),\
59 FLAGS:=-bootclasspath $(JDK_OUTPUTDIR)/classes $(DISABLE_WARNINGS),\
60 SERVER_DIR:=$(SJAVAC_SERVER_DIR),\
61 SERVER_JVM:=$(SJAVAC_SERVER_JAVA)))
|
28 JAVADOC_JARS ?= "-Xbootclasspath/p:$(LANGTOOLS_OUTPUTDIR)/dist/bootstrap/lib/javadoc.jar" -jar $(LANGTOOLS_OUTPUTDIR)/dist/bootstrap/lib/javadoc.jar
29
30 DISABLE_WARNINGS:=-Xlint:all,-deprecation,-unchecked,-rawtypes,-cast,-serial,-dep-ann,-static,-fallthrough,-try,-varargs,-empty,-finally
31
32 # The generate old bytecode javac setup uses the new compiler to compile for the
33 # boot jdk to generate tools that need to be run with the boot jdk.
34 # Thus we force the target bytecode to 7.
35 $(eval $(call SetupJavaCompiler,GENERATE_OLDBYTECODE,\
36 JVM:=$(JAVA),\
37 JAVAC:=$(JAVAC_JARS),\
38 FLAGS:=-source 7 -target 7 -bootclasspath $(BOOT_RTJAR) $(DISABLE_WARNINGS),\
39 SERVER_DIR:=$(SJAVAC_SERVER_DIR),\
40 SERVER_JVM:=$(SJAVAC_SERVER_JAVA)))
41
42 # The generate new bytecode javac setup uses the new compiler to compile for the
43 # new jdk. This new bytecode might only be possible to run using the new jvm.
44 $(eval $(call SetupJavaCompiler,GENERATE_JDKBYTECODE,\
45 JVM:=$(JAVA),\
46 JAVAC:=$(JAVAC_JARS),\
47 JAVAH:=$(JAVAH_JARS),\
48 FLAGS:=-bootclasspath $(JDK_OUTPUTDIR)/classes -source 8 -target 8 -encoding ascii -XDignore.symbol.file=true $(DISABLE_WARNINGS),\
49 SERVER_DIR:=$(SJAVAC_SERVER_DIR),\
50 SERVER_JVM:=$(SJAVAC_SERVER_JAVA)))
51
52 # After the jdk is built, we want to build demos using only the recently
53 # generated jdk classes and nothing else, no jdk source, etc etc.
54 # I.e. the rt.jar, but since rt.jar has not yet been generated
55 # (it will be in "make images") therefore we use classes instead.
56 $(eval $(call SetupJavaCompiler,GENERATE_USINGJDKBYTECODE,\
57 JVM:=$(JAVA),\
58 JAVAC:=$(JAVAC_JARS),\
59 FLAGS:=-bootclasspath $(JDK_OUTPUTDIR)/classes $(DISABLE_WARNINGS),\
60 SERVER_DIR:=$(SJAVAC_SERVER_DIR),\
61 SERVER_JVM:=$(SJAVAC_SERVER_JAVA)))
|