Browse Source

Disable compile-time JACK

master
Pekka Helenius 3 years ago
parent
commit
b8c03664a1
1 changed files with 11 additions and 8 deletions
  1. +11
    -8
      androidOS_files/builscript.sh

+ 11
- 8
androidOS_files/builscript.sh View File

@ -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)


Loading…
Cancel
Save