blob: 32a5c9ebcd77b856c2e7fa30ebcefcb3a679b827 [file] [log] [blame]
The Android Open Source Project88b60792009-03-03 19:28:42 -08001# Selects a Java compiler.
2#
The Android Open Source Project88b60792009-03-03 19:28:42 -08003# Outputs:
Colin Cross2c692772017-08-09 16:24:02 -07004# ANDROID_JAVA_TOOLCHAIN -- Directory that contains javac and other java tools
Ying Wangad690992013-09-20 17:11:43 -07005#
6
Colin Cross66845282017-09-27 13:17:59 -07007ANDROID_COMPILE_WITH_JACK := false
Colin Cross79e2f732016-12-21 14:29:13 -08008
Colin Cross56018422017-09-26 16:22:00 -07009ifdef TARGET_BUILD_APPS
10 ifndef TURBINE_ENABLED
11 TURBINE_ENABLED := false
12 endif
13endif
14
Colin Crosse97e6932017-06-30 16:01:45 -070015ANDROID_JAVA_TOOLCHAIN := $(ANDROID_JAVA_HOME)/bin
Colin Crosse97e6932017-06-30 16:01:45 -070016
Colin Cross2c692772017-08-09 16:24:02 -070017# TODO(ccross): remove this, it is needed for now because it is used by
18# config.mk before makevars from soong are loaded
Sasha Smundaka6387882019-06-11 13:29:12 -070019JAVA := $(ANDROID_JAVA_TOOLCHAIN)/java -XX:OnError="cat hs_err_pid%p.log" -XX:CICompilerCount=6 -XX:+UseDynamicNumberOfGCThreads
20