make/common/SetupJavaCompilers.gmk
changeset 26548 3b002da2aee1
parent 26115 7a9dc384f3c8
child 27595 cff167b3bfa2
child 27560 adc258b13e2c
--- a/make/common/SetupJavaCompilers.gmk	Mon Sep 15 12:23:32 2014 -0700
+++ b/make/common/SetupJavaCompilers.gmk	Tue Sep 16 12:08:04 2014 +0200
@@ -34,6 +34,12 @@
 # make JAVAC_WARNINGS="-Xlint:all -Xmaxwarns 10000"
 JAVAC_WARNINGS := -Xlint:all,-deprecation -Werror
 
+# The BOOT_JAVAC setup uses the boot jdk compiler to compile the tools
+# and the interim javac, to be run by the boot jdk.
+$(eval $(call SetupJavaCompiler,BOOT_JAVAC, \
+    JAVAC := $(JAVAC), \
+    FLAGS := -XDignore.symbol.file=true -g -Xlint:all$(COMMA)-deprecation -Werror))
+
 # Any java code executed during a JDK build to build other parts of the JDK must be 
 # executed by the bootstrap JDK (probably with -Xbootclasspath/p: ) and for this 
 # purpose must be built with -target PREVIOUS for bootstrapping purposes, which