| 1 |
# -*- shell-script -*- |
| 2 |
# Copyright (C) 2018-2025 Free Software Foundation, Inc. |
| 3 |
# |
| 4 |
# GCC is free software; you can redistribute it and/or modify |
| 5 |
# it under the terms of the GNU General Public License as published by |
| 6 |
# the Free Software Foundation; either version 3, or (at your option) |
| 7 |
# any later version. |
| 8 |
# |
| 9 |
# GCC is distributed in the hope that it will be useful, |
| 10 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 |
# GNU General Public License for more details. |
| 13 |
# |
| 14 |
# You should have received a copy of the GNU General Public License |
| 15 |
# along with GCC; see the file COPYING3. If not see |
| 16 |
# <http://www.gnu.org/licenses/>. |
| 17 |
|
| 18 |
# This is the target specific configuration file. This is invoked by the |
| 19 |
# autoconf generated configure script. Putting it in a separate shell file |
| 20 |
# lets us skip running autoconf when modifying target specific information. |
| 21 |
|
| 22 |
# Disable the libphobos or libdruntime components on untested or known |
| 23 |
# broken systems. More targets shall be added after testing. |
| 24 |
LIBPHOBOS_SUPPORTED=no |
| 25 |
LIBDRUNTIME_ONLY=auto |
| 26 |
case "${target}" in |
| 27 |
*-*-dragonfly*) |
| 28 |
LIBPHOBOS_SUPPORTED=yes |
| 29 |
;; |
| 30 |
aarch64-*-darwin2*) |
| 31 |
LIBPHOBOS_SUPPORTED=yes |
| 32 |
;; |
| 33 |
aarch64*-*-linux*) |
| 34 |
LIBPHOBOS_SUPPORTED=yes |
| 35 |
;; |
| 36 |
arm*-*-linux*) |
| 37 |
LIBPHOBOS_SUPPORTED=yes |
| 38 |
;; |
| 39 |
hppa-*-linux* | hppa[12]*-*-linux*) |
| 40 |
LIBPHOBOS_SUPPORTED=yes |
| 41 |
;; |
| 42 |
loongarch*-*-linux*) |
| 43 |
LIBPHOBOS_SUPPORTED=yes |
| 44 |
;; |
| 45 |
mips*-*-linux*) |
| 46 |
LIBPHOBOS_SUPPORTED=yes |
| 47 |
;; |
| 48 |
power*-*-freebsd*) |
| 49 |
LIBPHOBOS_SUPPORTED=yes |
| 50 |
;; |
| 51 |
powerpc64le-*linux*) |
| 52 |
LIBPHOBOS_SUPPORTED=yes |
| 53 |
case "$ac_configure_args" in |
| 54 |
*--with-long-double-format=ieee*) |
| 55 |
;; |
| 56 |
*) |
| 57 |
LIBDRUNTIME_ONLY=yes |
| 58 |
esac |
| 59 |
;; |
| 60 |
power*-*-linux*) |
| 61 |
LIBPHOBOS_SUPPORTED=yes |
| 62 |
LIBDRUNTIME_ONLY=yes |
| 63 |
;; |
| 64 |
riscv*-*-linux*) |
| 65 |
LIBPHOBOS_SUPPORTED=yes |
| 66 |
;; |
| 67 |
s390*-linux*) |
| 68 |
LIBPHOBOS_SUPPORTED=yes |
| 69 |
;; |
| 70 |
sparc64-*-linux* | sparc*-*-solaris2.11*) |
| 71 |
LIBPHOBOS_SUPPORTED=yes |
| 72 |
;; |
| 73 |
*-*-darwin9* | *-*-darwin1[01]*) |
| 74 |
LIBDRUNTIME_ONLY=yes |
| 75 |
;; |
| 76 |
x86_64-*-darwin1[2-9]* | x86_64-*-darwin2* | i?86-*-darwin1[2-7]) |
| 77 |
LIBPHOBOS_SUPPORTED=yes |
| 78 |
;; |
| 79 |
x86_64-*-freebsd* | i?86-*-freebsd*) |
| 80 |
LIBPHOBOS_SUPPORTED=yes |
| 81 |
;; |
| 82 |
x86_64-*-kfreebsd*-gnu | i?86-*-kfreebsd*-gnu) |
| 83 |
LIBPHOBOS_SUPPORTED=yes |
| 84 |
;; |
| 85 |
x86_64-*-linux* | i?86-*-linux*) |
| 86 |
LIBPHOBOS_SUPPORTED=yes |
| 87 |
;; |
| 88 |
x86_64-*-netbsd* | i?86-*-netbsd*) |
| 89 |
LIBPHOBOS_SUPPORTED=yes |
| 90 |
;; |
| 91 |
x86_64-*-solaris2.11* | i?86-*-solaris2.11*) |
| 92 |
LIBPHOBOS_SUPPORTED=yes |
| 93 |
;; |
| 94 |
esac |