Skip to content

Commit 31c01ba

Browse files
committed
Disable cross architecture building in Termux
I hope this works
1 parent 11ef15a commit 31c01ba

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

plugins/envsetup

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,22 @@ do_build() {
292292
suite="jammy"
293293
fi
294294

295+
#Disable cross architecture building in Termux
296+
if [ "$FS_COOK_PLATFORM" == "termux" ]; then
297+
case $worker_arch in
298+
aarch64) termux_arch="arm64" ;;
299+
arm*) termux_arch="armhf" ;;
300+
amd64|x86_64) termux_arch="amd64" ;;
301+
*) die "Unknown architecture" ;;
302+
esac
303+
if [ "$termux_arch" != "$arch" ]; then
304+
lshout "Skipping cross architecture building for Termux"
305+
return 0
306+
else
307+
lshout "Building on Termux"
308+
fi
309+
fi
310+
295311
shout "debootstraping $suite to $target_dir"
296312

297313
if [[ -n $OVERRIDER_MIRROR ]]; then

0 commit comments

Comments
 (0)