< prev index next >

make/bsd/makefiles/rules.make

Print this page

        

@@ -124,12 +124,18 @@
 # 'gmake MAKE_VERBOSE=y' gives all the gory details.
 QUIETLY$(MAKE_VERBOSE)  = @
 RUN.JAR$(MAKE_VERBOSE) += >/dev/null
 
 # Settings for javac
+ifeq ($(ENABLE_JFR), true)
+# JFR source code is consciously left as close as possible to later versions of JDK. hence need at least lambda support
 BOOT_SOURCE_LANGUAGE_VERSION = 8
 BOOT_TARGET_CLASS_VERSION = 8
+else
+BOOT_SOURCE_LANGUAGE_VERSION = 7
+BOOT_TARGET_CLASS_VERSION = 7
+endif
 JAVAC_FLAGS = -g -encoding ascii
 BOOTSTRAP_JAVAC_FLAGS = $(JAVAC_FLAGS) -source $(BOOT_SOURCE_LANGUAGE_VERSION) -target $(BOOT_TARGET_CLASS_VERSION)
 
 # With parallel makes, print a message at the end of compilation.
 ifeq    ($(findstring j,$(MFLAGS)),j)
< prev index next >