main/gcc: replace CARCH with CTARGET_ARCH

with CARCH, the cross-compilers are built when using bootstrap.sh
however, they are then not used to build the native compilers
This commit is contained in:
Celeste 2024-09-04 01:49:28 +00:00
parent aeb88169c9
commit c68bd33eb1

View File

@ -117,7 +117,7 @@ else
export BOOT_LDFLAGS="$LDFLAGS"
fi
case "$CARCH" in
case "$CTARGET_ARCH" in
# GDC hasn't been ported to PowerPC
# See libphobos/configure.tgt in GCC sources for supported targets
# riscv fails with: error: static assert "unimplemented"
@ -161,13 +161,8 @@ if $_libgomp; then
subpackages="$subpackages libgomp::$CTARGET_ARCH"
fi
case "$CARCH" in
riscv64)
LANG_ADA=false;;
esac
case "$CTARGET_ARCH" in
loongarch64)
riscv64|loongarch64)
LANG_ADA=false;;
esac