golang.org/x/build@v0.0.0-20240506185731-218518f32b70/env/corellium/android/files/builder.sh (about) 1 # Copyright 2022 The Go Authors. All rights reserved. 2 # Use of this source code is governed by a BSD-style 3 # license that can be found in the LICENSE file. 4 5 export CC=$HOME/clangwrap 6 export GO_BUILDER_ENV=host-android-arm64-corellium-android 7 ( 8 flock -n 9 || exit 0 9 while true; do 10 go install golang.org/x/build/cmd/buildlet@latest 11 # unset LD_PRELOAD libtermux-exec for 32-bit binaries 12 (unset LD_PRELOAD && 13 $HOME/go/bin/buildlet -reverse-type host-android-arm64-corellium-android -coordinator farmer.golang.org) 14 sleep 1 15 #/system/bin/reboot 16 done 17 ) 9>$PREFIX/tmp/builder.lock