diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2011-12-22 22:50:44 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2011-12-22 22:50:44 +0000 |
commit | b8c20b8d78f946a1657825f7e0a48c6ead352ca6 (patch) | |
tree | 126300456faeedbc53e888ec756ddb92d1601479 /autoconf | |
parent | 30450e89d94a5d7daa887c7b25a33aa9aa19863c (diff) |
Attempt #2 to fix mingw crossbuild. This time with more ugly hacks!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147196 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'autoconf')
-rw-r--r-- | autoconf/m4/visibility_inlines_hidden.m4 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/autoconf/m4/visibility_inlines_hidden.m4 b/autoconf/m4/visibility_inlines_hidden.m4 index ee3d61bc82..65dd503e20 100644 --- a/autoconf/m4/visibility_inlines_hidden.m4 +++ b/autoconf/m4/visibility_inlines_hidden.m4 @@ -8,9 +8,9 @@ AC_DEFUN([AC_CXX_USE_VISIBILITY_INLINES_HIDDEN], [llvm_cv_cxx_visibility_inlines_hidden], [ AC_LANG_PUSH([C++]) oldcxxflags="$CXXFLAGS" - CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden" + CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden -Werror" AC_COMPILE_IFELSE([AC_LANG_PROGRAM( - [template <typename T> struct X { inline void f() {} };], + [template <typename T> struct X { void __attribute__((noinline)) f() {} };], [X<int>().f();])], [llvm_cv_cxx_visibility_inlines_hidden=yes],[llvm_cv_cxx_visibility_inlines_hidden=no]) CXXFLAGS="$oldcxxflags" |