Avoid printing the following information on mips and mips64 when check msa:

"unrecognized command line option ‘-mmsa’"
This commit is contained in:
gxw 2020-02-10 19:11:45 +08:00
parent 3bec250cf9
commit 754433f420
1 changed files with 1 additions and 1 deletions

View File

@ -195,7 +195,7 @@ if (($architecture eq "mips") || ($architecture eq "mips64")) {
print $tmpf "void main(void){ __asm__ volatile($code); }\n";
$args = "$msa_flags -o $tmpf.o $tmpf";
my @cmd = ("$compiler_name $args");
my @cmd = ("$compiler_name $args >/dev/null 2>/dev/null");
system(@cmd) == 0;
if ($? != 0) {
$have_msa = 0;