|
@ -76,17 +76,20 @@ cd ${WORKDIR}/ |
|
|
. build/envsetup.sh |
|
|
. build/envsetup.sh |
|
|
lunch anbox_x86_64-userdebug |
|
|
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! |
|
|
# RUN THIS IN SEPARATE SHELL! |
|
|
# Jack server must be run during compilation process |
|
|
# 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) |
|
|
LC_ALL=C make -j$(nproc --ignore 1) |
|
|
|
|
|
|
|
|