[llvm-commits] [llvm] r147196 - in /llvm/trunk: autoconf/m4/visibility_inlines_hidden.m4 configure
Benjamin Kramer
benny.kra at googlemail.com
Thu Dec 22 14:50:44 PST 2011
Author: d0k
Date: Thu Dec 22 16:50:44 2011
New Revision: 147196
URL: http://llvm.org/viewvc/llvm-project?rev=147196&view=rev
Log:
Attempt #2 to fix mingw crossbuild. This time with more ugly hacks!
Modified:
llvm/trunk/autoconf/m4/visibility_inlines_hidden.m4
llvm/trunk/configure
Modified: llvm/trunk/autoconf/m4/visibility_inlines_hidden.m4
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/autoconf/m4/visibility_inlines_hidden.m4?rev=147196&r1=147195&r2=147196&view=diff
==============================================================================
--- llvm/trunk/autoconf/m4/visibility_inlines_hidden.m4 (original)
+++ llvm/trunk/autoconf/m4/visibility_inlines_hidden.m4 Thu Dec 22 16:50:44 2011
@@ -8,9 +8,9 @@
[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"
Modified: llvm/trunk/configure
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/configure?rev=147196&r1=147195&r2=147196&view=diff
==============================================================================
--- llvm/trunk/configure (original)
+++ llvm/trunk/configure Thu Dec 22 16:50:44 2011
@@ -20986,14 +20986,14 @@
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
oldcxxflags="$CXXFLAGS"
- CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
+ CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden -Werror"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
-template <typename T> struct X { inline void f() {} };
+template <typename T> struct X { void __attribute__((noinline)) f() {} };
int
main ()
{
More information about the llvm-commits
mailing list