Project

General

Profile

Issue #1317 ยป add-1.8-to-javac-correct-version-check.patch

My Self, 08/22/2015 02:30 PM

View differences:

core/main.mk
endif
# Check for the correct version of javac
javac_version := $(shell javac -version 2>&1 | head -n 1 | grep '[ "]1\.[67][\. "$$]')
javac_version := $(shell javac -version 2>&1 | head -n 1 | grep '[ "]1\.[678][\. "$$]')
ifeq ($(strip $(javac_version)),)
$(info ************************************************************)
$(info You are attempting to build with the incorrect version)
$(info of javac.)
$(info $(space))
$(info Your version is: $(shell javac -version 2>&1 | head -n 1).)
$(info The correct version is: 1.6 or 1.7.)
$(info The correct version is: 1.6, 1.7 or 1.8.)
$(info ************************************************************)
$(error stop)
endif
    (1-1/1)