]>
Commit | Line | Data |
---|---|---|
93bf5390 | 1 | # -*- shell-script -*- |
752361c9 | 2 | # Copyright (C) 2012-2018 Free Software Foundation, Inc. |
93bf5390 RH |
3 | |
4 | # This program 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 2 of the License, or | |
7 | # (at your option) any later version. | |
8 | # | |
9 | # This program 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 this program; if not see <http://www.gnu.org/licenses/>. | |
16 | ||
17 | # This is the target specific configuration file. This is invoked by the | |
18 | # autoconf generated configure script. Putting it in a separate shell file | |
19 | # lets us skip running autoconf when modifying target specific information. | |
20 | ||
21 | # Filter out unsupported systems. | |
8790f572 | 22 | TSAN_TARGET_DEPENDENT_OBJECTS= |
10189819 | 23 | SANITIZER_COMMON_TARGET_DEPENDENT_OBJECTS= |
93bf5390 | 24 | case "${target}" in |
d730fd95 AT |
25 | x86_64-*-freebsd* | i?86-*-freebsd*) |
26 | ;; | |
64548f3b JJ |
27 | x86_64-*-linux* | i?86-*-linux*) |
28 | if test x$ac_cv_sizeof_void_p = x8; then | |
29 | TSAN_SUPPORTED=yes | |
9065ada9 | 30 | LSAN_SUPPORTED=yes |
8790f572 | 31 | TSAN_TARGET_DEPENDENT_OBJECTS=tsan_rtl_amd64.lo |
2996b5c0 | 32 | HWASAN_SUPPORTED=yes |
bf4df9e6 | 33 | fi |
64548f3b | 34 | ;; |
957fee09 | 35 | powerpc*-*-linux*) |
c831801d JJ |
36 | if test x$ac_cv_sizeof_void_p = x8; then |
37 | TSAN_SUPPORTED=yes | |
38 | LSAN_SUPPORTED=yes | |
39 | TSAN_TARGET_DEPENDENT_OBJECTS=tsan_rtl_ppc64.lo | |
40 | fi | |
957fee09 | 41 | ;; |
64548f3b | 42 | sparc*-*-linux*) |
93bf5390 | 43 | ;; |
4997a71d | 44 | s390*-*-linux*) |
ea22954e IL |
45 | if test x$ac_cv_sizeof_void_p = x8; then |
46 | TSAN_SUPPORTED=yes | |
47 | LSAN_SUPPORTED=yes | |
48 | TSAN_TARGET_DEPENDENT_OBJECTS=tsan_rtl_s390x.lo | |
49 | fi | |
4997a71d | 50 | ;; |
aaabfd71 RO |
51 | sparc*-*-solaris2.11*) |
52 | ;; | |
45d53c67 CL |
53 | arm*-*-*fdpiceabi) |
54 | UNSUPPORTED=1 | |
55 | ;; | |
8a5800b8 CL |
56 | arm*-*-linux*) |
57 | ;; | |
752361c9 HPN |
58 | mips*-*-linux*) |
59 | ;; | |
a3125fc2 | 60 | aarch64*-*-linux*) |
696d846a MO |
61 | if test x$ac_cv_sizeof_void_p = x8; then |
62 | TSAN_SUPPORTED=yes | |
55aea9f5 MO |
63 | LSAN_SUPPORTED=yes |
64 | TSAN_TARGET_DEPENDENT_OBJECTS=tsan_rtl_aarch64.lo | |
8a769f81 | 65 | HWASAN_SUPPORTED=yes |
696d846a | 66 | fi |
a3125fc2 | 67 | ;; |
e722a1f4 | 68 | x86_64-*-darwin2[01]* | x86_64-*-darwin1[6-9]* | i?86-*-darwin1[6-8]*) |
f246eadc | 69 | TSAN_SUPPORTED=no |
759f3854 | 70 | EXTRA_CXXFLAGS="${EXTRA_CXXFLAGS} -Wl,-undefined,dynamic_lookup" |
f246eadc | 71 | ;; |
aaabfd71 RO |
72 | x86_64-*-solaris2.11* | i?86-*-solaris2.11*) |
73 | ;; | |
4a96e1c4 | 74 | riscv64-*-linux*) |
ae11ee8f AS |
75 | if test x$ac_cv_sizeof_void_p = x8; then |
76 | TSAN_SUPPORTED=yes | |
77 | LSAN_SUPPORTED=yes | |
78 | TSAN_TARGET_DEPENDENT_OBJECTS=tsan_rtl_riscv64.lo | |
79 | fi | |
4a96e1c4 | 80 | ;; |
a542e4d6 | 81 | loongarch64-*-linux*) |
66eebab4 | 82 | if test x$ac_cv_sizeof_void_p = x8; then |
83 | TSAN_SUPPORTED=yes | |
84 | LSAN_SUPPORTED=yes | |
85 | TSAN_TARGET_DEPENDENT_OBJECTS=tsan_rtl_loongarch64.lo | |
86 | fi | |
a542e4d6 | 87 | ;; |
93bf5390 RH |
88 | *) |
89 | UNSUPPORTED=1 | |
90 | ;; | |
91 | esac |