aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/configure.host
diff options
context:
space:
mode:
authorYang Yujie <yangyujie@loongson.cn>2023-09-07 14:50:10 +0800
committerLulu Cheng <chenglulu@loongson.cn>2023-09-08 17:51:06 +0800
commit62a550e7ec9a524f67344bc12634bff2a2054d72 (patch)
tree024d95650f82703b195a030089585756722ed1e7 /libstdc++-v3/configure.host
parent109c11f62b041c8d5e23a139a8e45456ec411a41 (diff)
downloadgcc-62a550e7ec9a524f67344bc12634bff2a2054d72.zip
gcc-62a550e7ec9a524f67344bc12634bff2a2054d72.tar.gz
gcc-62a550e7ec9a524f67344bc12634bff2a2054d72.tar.bz2
LoongArch: Adjust C++ multilib header layout.
For LoongArch, the toplevel library build is always aliased to one of the multilib variants. This patch installs it with the actual MULTISUBDIR (instead of ".") so that the headers can be reached by the compiler. This patch is an update of https://gcc.gnu.org/pipermail/gcc-patches/2023-September/629435.html libstdc++-v3/ChangeLog: * configure.host: Register t-loongarch in tmake_file. * config/cpu/loongarch/t-loongarch: New file. Manually refresh MULTISUBDIR with $(shell $(CXX) --print-multi-directory).
Diffstat (limited to 'libstdc++-v3/configure.host')
-rw-r--r--libstdc++-v3/configure.host5
1 files changed, 4 insertions, 1 deletions
diff --git a/libstdc++-v3/configure.host b/libstdc++-v3/configure.host
index 9e7c7f0..9dc42ad 100644
--- a/libstdc++-v3/configure.host
+++ b/libstdc++-v3/configure.host
@@ -315,7 +315,10 @@ esac
# Set any OS-dependent and CPU-dependent bits.
# THIS TABLE IS SORTED. KEEP IT THAT WAY.
case "${host}" in
- *-*-linux* | *-*-uclinux*)
+ loongarch*)
+ tmake_file="cpu/loongarch/t-loongarch"
+ ;;
+ *-*-linux* | *-*-uclinux*)
case "${host_cpu}" in
i[567]86)
abi_baseline_pair=i486-linux-gnu