2018-10-31 17:44:31 +08:00
|
|
|
# -*- shell-script -*-
|
2024-01-03 19:19:35 +08:00
|
|
|
# Copyright (C) 2018-2024 Free Software Foundation, Inc.
|
2018-10-31 17:44:31 +08:00
|
|
|
#
|
|
|
|
# GCC is free software; you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation; either version 3, or (at your option)
|
|
|
|
# any later version.
|
|
|
|
#
|
|
|
|
# GCC is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with GCC; see the file COPYING3. If not see
|
|
|
|
# <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
# This is the target specific configuration file. This is invoked by the
|
|
|
|
# autoconf generated configure script. Putting it in a separate shell file
|
|
|
|
# lets us skip running autoconf when modifying target specific information.
|
|
|
|
|
|
|
|
# Disable the libphobos or libdruntime components on untested or known
|
|
|
|
# broken systems. More targets shall be added after testing.
|
2019-04-14 17:38:01 +08:00
|
|
|
LIBPHOBOS_SUPPORTED=no
|
2020-03-25 16:38:58 +08:00
|
|
|
LIBDRUNTIME_ONLY=auto
|
2018-10-31 17:44:31 +08:00
|
|
|
case "${target}" in
|
2020-10-29 21:07:02 +08:00
|
|
|
*-*-dragonfly*)
|
|
|
|
LIBPHOBOS_SUPPORTED=yes
|
|
|
|
;;
|
2024-04-01 20:58:20 +08:00
|
|
|
aarch64-*-darwin2*)
|
|
|
|
LIBPHOBOS_SUPPORTED=yes
|
|
|
|
;;
|
2019-04-24 06:53:35 +08:00
|
|
|
aarch64*-*-linux*)
|
|
|
|
LIBPHOBOS_SUPPORTED=yes
|
|
|
|
;;
|
2018-10-31 17:44:31 +08:00
|
|
|
arm*-*-linux*)
|
2019-04-14 17:38:01 +08:00
|
|
|
LIBPHOBOS_SUPPORTED=yes
|
2018-10-31 17:44:31 +08:00
|
|
|
;;
|
2020-04-27 08:41:08 +08:00
|
|
|
hppa-*-linux*)
|
|
|
|
LIBPHOBOS_SUPPORTED=yes
|
|
|
|
;;
|
2023-12-18 09:52:07 +08:00
|
|
|
loongarch*-*-linux*)
|
|
|
|
LIBPHOBOS_SUPPORTED=yes
|
|
|
|
;;
|
2018-10-31 17:44:31 +08:00
|
|
|
mips*-*-linux*)
|
2019-04-14 17:38:01 +08:00
|
|
|
LIBPHOBOS_SUPPORTED=yes
|
2018-10-31 17:44:31 +08:00
|
|
|
;;
|
2021-12-21 22:03:47 +08:00
|
|
|
power*-*-freebsd*)
|
|
|
|
LIBPHOBOS_SUPPORTED=yes
|
|
|
|
;;
|
2020-04-26 17:32:57 +08:00
|
|
|
power*-*-linux*)
|
|
|
|
LIBPHOBOS_SUPPORTED=yes
|
|
|
|
LIBDRUNTIME_ONLY=yes
|
|
|
|
;;
|
2019-04-24 06:53:12 +08:00
|
|
|
riscv*-*-linux*)
|
|
|
|
LIBPHOBOS_SUPPORTED=yes
|
|
|
|
;;
|
2019-04-24 06:53:25 +08:00
|
|
|
s390*-linux*)
|
|
|
|
LIBPHOBOS_SUPPORTED=yes
|
|
|
|
;;
|
2022-03-11 16:37:44 +08:00
|
|
|
sparc*-*-solaris2.11*)
|
|
|
|
LIBPHOBOS_SUPPORTED=yes
|
|
|
|
;;
|
2024-04-01 20:58:20 +08:00
|
|
|
*-*-darwin9* | *-*-darwin1[01]*)
|
|
|
|
LIBDRUNTIME_ONLY=yes
|
|
|
|
;;
|
|
|
|
x86_64-*-darwin1[2-9]* | x86_64-*-darwin2* | i?86-*-darwin1[2-7])
|
|
|
|
LIBPHOBOS_SUPPORTED=yes
|
|
|
|
;;
|
2020-11-28 23:55:53 +08:00
|
|
|
x86_64-*-freebsd* | i?86-*-freebsd*)
|
|
|
|
LIBPHOBOS_SUPPORTED=yes
|
|
|
|
;;
|
2018-10-31 17:44:31 +08:00
|
|
|
x86_64-*-kfreebsd*-gnu | i?86-*-kfreebsd*-gnu)
|
2019-04-14 17:38:01 +08:00
|
|
|
LIBPHOBOS_SUPPORTED=yes
|
2018-10-31 17:44:31 +08:00
|
|
|
;;
|
|
|
|
x86_64-*-linux* | i?86-*-linux*)
|
2019-04-14 17:38:01 +08:00
|
|
|
LIBPHOBOS_SUPPORTED=yes
|
2018-10-31 17:44:31 +08:00
|
|
|
;;
|
2019-02-15 05:25:39 +08:00
|
|
|
x86_64-*-netbsd* | i?86-*-netbsd*)
|
2019-04-14 17:38:01 +08:00
|
|
|
LIBPHOBOS_SUPPORTED=yes
|
2019-02-15 05:25:39 +08:00
|
|
|
;;
|
2019-04-14 17:38:01 +08:00
|
|
|
x86_64-*-solaris2.11* | i?86-*-solaris2.11*)
|
|
|
|
LIBPHOBOS_SUPPORTED=yes
|
2018-10-31 17:44:31 +08:00
|
|
|
;;
|
|
|
|
esac
|