check whether arch-test exists

This commit is contained in:
Johannes 'josch' Schauer 2020-04-10 12:25:24 +02:00
parent 46f477f339
commit d26f5de912
Signed by: josch
GPG key ID: F2CBA5C78FBD83E1

View file

@ -3221,6 +3221,9 @@ sub main() {
sparc64 => 'sparc64', sparc64 => 'sparc64',
}; };
if ($hostarch ne $options->{nativearch}) { if ($hostarch ne $options->{nativearch}) {
if (system('arch-test --version>/dev/null') != 0) {
error "install arch-test for foreign architecture support";
}
my $withemu = 0; my $withemu = 0;
my $noemu = 0; my $noemu = 0;
{ {