Skip to content

Commit 0017a75

Browse files
configure: Disable GCC checking on BE builds
GCC currently does not support the RISC-V Vector Extension on big-endian builds, which causes the stage1 self-tests to fail. Disabling them is a temporary fix, until we get RVV working on big-endian systems.
1 parent 912d1ea commit 0017a75

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

configure

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4185,16 +4185,18 @@ else $as_nop
41854185
fi
41864186
41874187
# Check whether --enable-gcc-checking was given.
4188-
if test ${enable_gcc_checking+y}
4188+
if test ${enable_gcc_checking+y} && test "x$endian" = xlittle
41894189
then :
41904190
enableval=$enable_gcc_checking;
41914191
fi
41924192
4193-
4194-
if test "x$enable_gcc_checking" = xyes
4193+
# FIXME: Stage1 self-tests fail on BE builds due to lack of RVV support. Disable them for now.
4194+
if test "x$enable_gcc_checking" = xyes && "x$endian" = xlittle
41954195
then :
41964196
gcc_checking=--enable-checking
4197-
4197+
elif test "x$endian" = xbig
4198+
then :
4199+
gcc_checking="--enable-checking=no --disable-stage1-checking"
41984200
else $as_nop
41994201
gcc_checking=""
42004202

0 commit comments

Comments
 (0)