]>
Commit | Line | Data |
---|---|---|
492e75a7 | 1 | # -*- shell-script -*- |
6dc485f2 | 2 | # Copyright (C) 2012-2018 Free Software Foundation, Inc. |
492e75a7 | 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. | |
766ed4ed | 22 | TSAN_TARGET_DEPENDENT_OBJECTS= |
23e39437 | 23 | SANITIZER_COMMON_TARGET_DEPENDENT_OBJECTS= |
492e75a7 | 24 | case "${target}" in |
a96132f2 | 25 | x86_64-*-linux* | i?86-*-linux*) |
26 | if test x$ac_cv_sizeof_void_p = x8; then | |
27 | TSAN_SUPPORTED=yes | |
f8ff4a27 | 28 | LSAN_SUPPORTED=yes |
766ed4ed | 29 | TSAN_TARGET_DEPENDENT_OBJECTS=tsan_rtl_amd64.lo |
5713d08c | 30 | fi |
a96132f2 | 31 | ;; |
39368d08 | 32 | powerpc*-*-linux*) |
8edac8ec | 33 | if test x$ac_cv_sizeof_void_p = x8; then |
34 | TSAN_SUPPORTED=yes | |
35 | LSAN_SUPPORTED=yes | |
36 | TSAN_TARGET_DEPENDENT_OBJECTS=tsan_rtl_ppc64.lo | |
37 | fi | |
39368d08 | 38 | ;; |
a96132f2 | 39 | sparc*-*-linux*) |
492e75a7 | 40 | ;; |
fff1179b | 41 | s390*-*-linux*) |
fff1179b | 42 | ;; |
f1bd24fe | 43 | sparc*-*-solaris2.11*) |
44 | ;; | |
3e8585ab | 45 | arm*-*-linux*) |
46 | ;; | |
6dc485f2 | 47 | mips*64*-*-linux*) |
48 | # This clause is only here to not match the supported mips*-*-linux*. | |
49 | UNSUPPORTED=1 | |
50 | ;; | |
51 | mips*-*-linux*) | |
52 | ;; | |
6153b62d | 53 | aarch64*-*-linux*) |
5645a48f | 54 | if test x$ac_cv_sizeof_void_p = x8; then |
55 | TSAN_SUPPORTED=yes | |
61b44d84 | 56 | LSAN_SUPPORTED=yes |
57 | TSAN_TARGET_DEPENDENT_OBJECTS=tsan_rtl_aarch64.lo | |
5645a48f | 58 | fi |
6153b62d | 59 | ;; |
9c311450 | 60 | x86_64-*-darwin[1]* | i?86-*-darwin[1]*) |
9dbc5ff0 | 61 | TSAN_SUPPORTED=no |
62 | ;; | |
f1bd24fe | 63 | x86_64-*-solaris2.11* | i?86-*-solaris2.11*) |
64 | ;; | |
492e75a7 | 65 | *) |
66 | UNSUPPORTED=1 | |
67 | ;; | |
68 | esac |