changeset 16265:bd8e2707574a

8009021: nasgen should be run on boot jdk rather than currenly built jdk Reviewed-by: jlaskey
author sundar
date Tue, 26 Feb 2013 22:57:51 +0530
parents e0c3c97cd93e
children 5ddfc1208ef3 cd471d62bb6a
files nashorn/makefiles/BuildNashorn.gmk
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/nashorn/makefiles/BuildNashorn.gmk	Mon Feb 25 16:51:04 2013 +0100
+++ b/nashorn/makefiles/BuildNashorn.gmk	Tue Feb 26 22:57:51 2013 +0530
@@ -57,10 +57,13 @@
     COPY:=.properties .js,\
     BIN:=$(NASHORN_OUTPUTDIR)/nashorn_classes))
 
+NASGEN_SRC := $(FIXPATH) $(NASHORN_TOPDIR)/buildtools/nasgen/src
+ASM_SRC := $(FIXPATH) $(JDK_TOPDIR)/src/share/classes/jdk/internal/org/objectweb/asm
+
 # Build nasgen
 $(eval $(call SetupJavaCompilation,BUILD_NASGEN,\
     SETUP:=GENERATE_NEWBYTECODE_DEBUG,\
-    SRC:=$(NASHORN_TOPDIR)/buildtools/nasgen/src,\
+    SRC:=$(NASGEN_SRC) $(ASM_SRC), \
     BIN:=$(NASHORN_OUTPUTDIR)/nasgen_classes,\
     ADD_JAVAC_FLAGS:=-cp $(NASHORN_OUTPUTDIR)/nashorn_classes))
 
@@ -74,7 +77,7 @@
 	$(MKDIR) -p $(@D)
 	$(RM) -rf $(@D)/jdk $(@D)/netscape
 	$(CP) -R -p $(NASHORN_OUTPUTDIR)/nashorn_classes/* $(@D)/
-	$(FIXPATH) $(JDK_OUTPUTDIR)/bin/java \
+	$(FIXPATH) $(JAVA) \
 		-cp "$(NASHORN_OUTPUTDIR)/nasgen_classes$(PATH_SEP)$(NASHORN_OUTPUTDIR)/nashorn_classes" \
 		jdk.nashorn.internal.tools.nasgen.Main $(@D) jdk.nashorn.internal.objects $(@D)
 	for f in `$(FIND) $(@D)/jdk/nashorn/internal/objects/ -name "*.class"`; do \