Map everything starting with x86 to i686

This fixes CPU detection for ARC welder which reports x86.
This commit is contained in:
Fredrik Fornwall
2016-02-14 00:42:34 +01:00
parent a8f7bf1b6e
commit 048af64093

View File

@@ -182,7 +182,7 @@ final class TermuxInstaller {
if (arch.startsWith("arm") || arch.equals("aarch64")) {
// Handle different arm variants such as armv7l:
arch = "arm";
} else if (arch.equals("x86_64")) {
} else if (arch.startsWith("x86")) { // "x86" on arcwelder, "x86_64" on 64-bit android.
arch = "i686";
}
return new URL("https://termux.net/bootstrap/bootstrap-" + arch + ".zip");