From b8c03664a1e52c2115e7b9e7fd34c29ff8ac4ed5 Mon Sep 17 00:00:00 2001 From: Pekka Helenius Date: Sun, 4 Jul 2021 12:52:26 +0300 Subject: [PATCH] Disable compile-time JACK --- androidOS_files/builscript.sh | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/androidOS_files/builscript.sh b/androidOS_files/builscript.sh index 2f1d142..1770c35 100644 --- a/androidOS_files/builscript.sh +++ b/androidOS_files/builscript.sh @@ -76,17 +76,20 @@ cd ${WORKDIR}/ . build/envsetup.sh lunch anbox_x86_64-userdebug -export ANDROID_JACK_VM_ARGS="-Dfile.encoding=UTF-8 -XX:+TieredCompilation -Xmx2G" +# Disable JACK +sed -i -r 's/(ANDROID_COMPILE_WITH_JACK := )true/\1false/' ${WORKDIR}/build/core/combo/javac.mk + +#export ANDROID_JACK_VM_ARGS="-Dfile.encoding=UTF-8 -XX:+TieredCompilation -Xmx2G" # RUN THIS IN SEPARATE SHELL! # Jack server must be run during compilation process -while true; do - sleep 2 - if [ -f aosp/out/host/linux-x86/bin/jack-admin ]; then - aosp/out/host/linux-x86/bin/jack-admin start-server - break - fi -done +#while true; do +# sleep 2 +# if [ -f aosp/out/host/linux-x86/bin/jack-admin ]; then +# aosp/out/host/linux-x86/bin/jack-admin start-server +# break +# fi +#done LC_ALL=C make -j$(nproc --ignore 1)