configure.tgt 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. # -*- shell-script -*-
  2. # Copyright (C) 2012-2018 Free Software Foundation, Inc.
  3. # This program is free software; you can redistribute it and/or modify
  4. # it under the terms of the GNU General Public License as published by
  5. # the Free Software Foundation; either version 2 of the License, or
  6. # (at your option) any later version.
  7. #
  8. # This program is distributed in the hope that it will be useful,
  9. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. # GNU General Public License for more details.
  12. #
  13. # You should have received a copy of the GNU General Public License
  14. # along with this program; if not see <http://www.gnu.org/licenses/>.
  15. # This is the target specific configuration file. This is invoked by the
  16. # autoconf generated configure script. Putting it in a separate shell file
  17. # lets us skip running autoconf when modifying target specific information.
  18. # Filter out unsupported systems.
  19. TSAN_TARGET_DEPENDENT_OBJECTS=
  20. SANITIZER_COMMON_TARGET_DEPENDENT_OBJECTS=
  21. case "${target}" in
  22. x86_64-*-freebsd* | i?86-*-freebsd*)
  23. ;;
  24. x86_64-*-linux* | i?86-*-linux*)
  25. if test x$ac_cv_sizeof_void_p = x8; then
  26. TSAN_SUPPORTED=yes
  27. LSAN_SUPPORTED=yes
  28. TSAN_TARGET_DEPENDENT_OBJECTS=tsan_rtl_amd64.lo
  29. fi
  30. ;;
  31. powerpc*-*-linux*)
  32. if test x$ac_cv_sizeof_void_p = x8; then
  33. TSAN_SUPPORTED=yes
  34. LSAN_SUPPORTED=yes
  35. TSAN_TARGET_DEPENDENT_OBJECTS=tsan_rtl_ppc64.lo
  36. fi
  37. ;;
  38. sparc*-*-linux*)
  39. ;;
  40. s390*-*-linux*)
  41. if test x$ac_cv_sizeof_void_p = x8; then
  42. TSAN_SUPPORTED=yes
  43. LSAN_SUPPORTED=yes
  44. TSAN_TARGET_DEPENDENT_OBJECTS=tsan_rtl_s390x.lo
  45. fi
  46. ;;
  47. sparc*-*-solaris2.11*)
  48. ;;
  49. arm*-*-*fdpiceabi)
  50. UNSUPPORTED=1
  51. ;;
  52. arm*-*-linux*)
  53. ;;
  54. mips*-*-linux*)
  55. ;;
  56. aarch64*-*-linux*)
  57. if test x$ac_cv_sizeof_void_p = x8; then
  58. TSAN_SUPPORTED=yes
  59. LSAN_SUPPORTED=yes
  60. TSAN_TARGET_DEPENDENT_OBJECTS=tsan_rtl_aarch64.lo
  61. HWASAN_SUPPORTED=yes
  62. fi
  63. ;;
  64. x86_64-*-darwin2* | x86_64-*-darwin1[2-9]* | i?86-*-darwin1[2-9]*)
  65. TSAN_SUPPORTED=no
  66. EXTRA_CXXFLAGS="${EXTRA_CXXFLAGS} -Wl,-undefined,dynamic_lookup"
  67. ;;
  68. x86_64-*-solaris2.11* | i?86-*-solaris2.11*)
  69. ;;
  70. riscv64-*-linux*)
  71. ;;
  72. *)
  73. UNSUPPORTED=1
  74. ;;
  75. esac