Bug 315917 - Make sure javac compiles JVM 1.4 compatible class files. r=bsmedberg

git-svn-id: svn://10.0.0.236/trunk@186221 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
pedemont%us.ibm.com
2005-12-18 17:09:28 +00:00
parent f2a6f68a58
commit 78c6341708
4 changed files with 13 additions and 10 deletions

View File

@@ -898,3 +898,14 @@ DEFINES += -DBUILD_ID=$(BUILD_ID)
ifeq (,$(filter WINCE WINNT OS2,$(OS_ARCH)))
RUN_TEST_PROGRAM = $(DIST)/bin/run-mozilla.sh
endif
#
# Java macros
#
# Make sure any compiled classes work with at least JVM 1.4
JAVAC_FLAGS += -source 1.4
ifdef MOZ_DEBUG
JAVAC_FLAGS += -g
endif

View File

@@ -68,10 +68,6 @@ GARBAGE_DIRS += _javagen org
include $(topsrcdir)/config/rules.mk
ifdef MOZ_DEBUG
JAVAC_FLAGS = -g
endif
ifeq ($(OS_ARCH),WINNT)
RUN =
OUTPUT_DIR = $(shell cygpath -w $(CURDIR)/_javagen/org/mozilla/xpcom)

View File

@@ -97,10 +97,6 @@ GARBAGE_DIRS += _javagen org
include $(topsrcdir)/config/rules.mk
ifdef MOZ_DEBUG
JAVAC_FLAGS = -g
endif
ifeq ($(OS_ARCH),WINNT)
RUN =
SEP = ;

View File

@@ -78,8 +78,8 @@ include $(topsrcdir)/config/rules.mk
%.class: %.java Makefile Makefile.in
$(REPORT_BUILD)
$(ELOG) $(CYGWIN_WRAPPER) $(JAVAC) -classpath $(_JAVA_CLASSPATH) -d . \
$(_VPATH_SRCS)
$(ELOG) $(CYGWIN_WRAPPER) $(JAVAC) $(JAVAC_FLAGS) \
-classpath $(_JAVA_CLASSPATH) -d . $(_VPATH_SRCS)
# make sure to rebuild Java interfaces if our XPIDLSRCS change
$(REBUILD_JAR): $(XPIDLSRCS)