1# Selects a Java compiler.
2#
3# Outputs:
4#   ANDROID_JAVA_TOOLCHAIN -- Directory that contains javac and other java tools
5#
6
7ANDROID_COMPILE_WITH_JACK := false
8
9ifdef TARGET_BUILD_APPS
10  ifndef TURBINE_ENABLED
11    TURBINE_ENABLED := false
12  endif
13endif
14
15ANDROID_JAVA_TOOLCHAIN := $(ANDROID_JAVA_HOME)/bin
16
17# TODO(ccross): remove this, it is needed for now because it is used by
18# config.mk before makevars from soong are loaded
19JAVA := $(ANDROID_JAVA_TOOLCHAIN)/java -XX:OnError="cat hs_err_pid%p.log" -XX:CICompilerCount=6 -XX:+UseDynamicNumberOfGCThreads
20
21