aboutsummaryrefslogtreecommitdiff
path: root/make
diff options
context:
space:
mode:
Diffstat (limited to 'make')
-rw-r--r--make/Makefile8
-rw-r--r--make/build.xml1
2 files changed, 9 insertions, 0 deletions
diff --git a/make/Makefile b/make/Makefile
index 56696720..48d09e60 100644
--- a/make/Makefile
+++ b/make/Makefile
@@ -69,6 +69,14 @@ else
endif
endif
+ifeq ($(DEBUG_CLASSFILES), true)
+ ANT_OPTIONS += -Djavac.debug=true
+ ANT_OPTIONS += -Djavac.debuglevel=source,lines,vars
+else
+ ANT_OPTIONS += -Djavac.debug=false
+ ANT_OPTIONS += -Djavac.debuglevel=
+endif
+
# Note: jdk/make/common/Defs.gmk uses LANGUAGE_VERSION (-source NN)
# and the somewhat misnamed CLASS_VERSION (-target NN)
ifdef TARGET_CLASS_VERSION
diff --git a/make/build.xml b/make/build.xml
index 9f013e99..ba0c8ce2 100644
--- a/make/build.xml
+++ b/make/build.xml
@@ -98,6 +98,7 @@
destdir="${build.classes.dir}"
memoryInitialSize="${javac.memoryInitialSize}"
memoryMaximumSize="${javac.memoryMaximumSize}"
+ debug="${javac.debug}"
target="${javac.target}"
excludes="com/sun/tools/internal/txw2/**">
<compilerarg value="-J-Xbootclasspath/p:${bootstrap.dir}/lib/javac.jar"/>