8008776: Revise BuildNashorn.gmk for changes in new build system
authorjlaskey
Fri, 22 Feb 2013 23:33:46 -0400
changeset 16261 c37fd274b194
parent 16260 3318a14ac7cb
child 16262 75513555e603
8008776: Revise BuildNashorn.gmk for changes in new build system Reviewed-by: jjh Contributed-by: james.laskey@oracle.com
nashorn/makefiles/BuildNashorn.gmk
--- a/nashorn/makefiles/BuildNashorn.gmk	Fri Feb 22 22:39:23 2013 +0530
+++ b/nashorn/makefiles/BuildNashorn.gmk	Fri Feb 22 23:33:46 2013 -0400
@@ -30,10 +30,6 @@
 include MakeBase.gmk
 include JavaCompilation.gmk
 
-# TODO: build-infra, move this to SPEC
-JAVAC_JARS ?= "-Xbootclasspath/p:$(LANGTOOLS_OUTPUTDIR)/dist/bootstrap/lib/javac.jar" \
-		-jar $(LANGTOOLS_OUTPUTDIR)/dist/bootstrap/lib/javac.jar
-
 JDK_CLASSES := $(JDK_OUTPUTDIR)/classes
 
 NASHORN_JAR := $(NASHORN_DIST)/nashorn.jar
@@ -47,23 +43,23 @@
 endif
 
 # Need to use source and target 7 for nasgen to work.
-$(eval $(call SetupJavaCompiler,COMPILER_SETUP,\
+$(eval $(call SetupJavaCompiler,GENERATE_NEWBYTECODE_DEBUG,\
     JVM:=$(JAVA),\
-    JAVAC:=$(JAVAC_JARS),\
+    JAVAC:=$(NEW_JAVAC),\
     FLAGS:=-g -source 7 -target 7 -bootclasspath $(JDK_CLASSES),\
     SERVER_DIR:=$(SJAVAC_SERVER_DIR),\
     SERVER_JVM:=$(SJAVAC_SERVER_JAVA)))
 
 # Build nashorn into intermediate directory
 $(eval $(call SetupJavaCompilation,BUILD_NASHORN,\
-    SETUP:=COMPILER_SETUP,\
+    SETUP:=GENERATE_NEWBYTECODE_DEBUG,\
     SRC:=$(NASHORN_TOPDIR)/src,\
     COPY:=.properties .js,\
     BIN:=$(NASHORN_OUTPUTDIR)/nashorn_classes))
 
 # Build nasgen
 $(eval $(call SetupJavaCompilation,BUILD_NASGEN,\
-    SETUP:=COMPILER_SETUP,\
+    SETUP:=GENERATE_NEWBYTECODE_DEBUG,\
     SRC:=$(NASHORN_TOPDIR)/buildtools/nasgen/src,\
     BIN:=$(NASHORN_OUTPUTDIR)/nasgen_classes,\
     ADD_JAVAC_FLAGS:=-cp $(NASHORN_OUTPUTDIR)/nashorn_classes))