Merge "Build: Experimental option to default to -source 1.9 -target 1.9"
This commit is contained in:
commit
67352ffa1f
1 changed files with 5 additions and 1 deletions
|
@ -19,7 +19,11 @@ ifeq (,$(LOCAL_JAVA_LANGUAGE_VERSION))
|
||||||
ifneq (,$(filter $(LOCAL_SDK_VERSION), $(private_sdk_versions_without_any_java_18_support)))
|
ifneq (,$(filter $(LOCAL_SDK_VERSION), $(private_sdk_versions_without_any_java_18_support)))
|
||||||
LOCAL_JAVA_LANGUAGE_VERSION := 1.7
|
LOCAL_JAVA_LANGUAGE_VERSION := 1.7
|
||||||
else
|
else
|
||||||
LOCAL_JAVA_LANGUAGE_VERSION := 1.8
|
ifneq ($(EXPERIMENTAL_USE_OPENJDK9),true)
|
||||||
|
LOCAL_JAVA_LANGUAGE_VERSION := 1.8
|
||||||
|
else
|
||||||
|
LOCAL_JAVA_LANGUAGE_VERSION := 1.9
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
LOCAL_JAVACFLAGS += -source $(LOCAL_JAVA_LANGUAGE_VERSION) -target $(LOCAL_JAVA_LANGUAGE_VERSION)
|
LOCAL_JAVACFLAGS += -source $(LOCAL_JAVA_LANGUAGE_VERSION) -target $(LOCAL_JAVA_LANGUAGE_VERSION)
|
||||||
|
|
Loading…
Reference in a new issue