diff options
author | Steve Kondik <steve@cyngn.com> | 2016-08-07 23:02:34 -0700 |
---|---|---|
committer | Steve Kondik <steve@cyngn.com> | 2016-08-07 23:02:34 -0700 |
commit | a097018341040759bbb0e4bdb11e5288d2e536f1 (patch) | |
tree | c442419c0a40cf58ee65d4ed5942d552636ce998 /core | |
parent | 7143cae26b4001d8e14ef3e565c568cf164fc7ce (diff) | |
download | build-a097018341040759bbb0e4bdb11e5288d2e536f1.zip build-a097018341040759bbb0e4bdb11e5288d2e536f1.tar.gz build-a097018341040759bbb0e4bdb11e5288d2e536f1.tar.bz2 |
build: Allow building with Oracle JDK 8
* The script is currently limiting JDK 8 builds to OpenJDK. Remove
this political stuff. The Oracle JDK works just fine, performs
better than OpenJDK in many cases, and there is no reason to require
switching around just to build Android.
Change-Id: I8200624ca7ccd0624a1aad6ccdb889b433d528d6
Diffstat (limited to 'core')
-rw-r--r-- | core/main.mk | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/core/main.mk b/core/main.mk index 04be6e6..fbc4fc8 100644 --- a/core/main.mk +++ b/core/main.mk @@ -158,7 +158,7 @@ javac_version_str := $(shell unset _JAVA_OPTIONS && javac -version 2>&1) ifneq ($(EXPERIMENTAL_USE_JAVA8),) required_version := "1.8.x" required_javac_version := "1.8" -java_version := $(shell echo '$(java_version_str)' | grep 'openjdk .*[ "]1\.8[\. "$$]') +java_version := $(shell echo '$(java_version_str)' | grep '.*[ "]1\.8[\. "$$]') javac_version := $(shell echo '$(javac_version_str)' | grep '[ "]1\.8[\. "$$]') else # default required_version := "1.7.x" @@ -185,9 +185,6 @@ endif # # For Java 1.7, we require OpenJDK on linux and Oracle JDK on Mac OS. requires_openjdk := false -ifeq ($(HOST_OS), linux) -requires_openjdk := true -endif # Check for the current jdk |