llvm.org GIT mirror llvm / cfe96c8
Make the -fvisibility-inlines-hidden check more thorough in a hopeless attempt to fix mingw cross-compiles. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147191 91177308-0d34-0410-b5e6-96231b3b80d8 Benjamin Kramer 7 years ago
2 changed file(s) with 5 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
88 [ AC_LANG_PUSH([C++])
99 oldcxxflags="$CXXFLAGS"
1010 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
11 AC_COMPILE_IFELSE([AC_LANG_PROGRAM()],
11 AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
12 [template struct X { inline void f() {} };],
13 [X().f();])],
1214 [llvm_cv_cxx_visibility_inlines_hidden=yes],[llvm_cv_cxx_visibility_inlines_hidden=no])
1315 CXXFLAGS="$oldcxxflags"
1416 AC_LANG_POP([C++])
2099220992 cat confdefs.h >>conftest.$ac_ext
2099320993 cat >>conftest.$ac_ext <<_ACEOF
2099420994 /* end confdefs.h. */
20995
20995 template struct X { inline void f() {} };
2099620996 int
2099720997 main ()
2099820998 {
20999
20999 X().f();
2100021000 ;
2100121001 return 0;
2100221002 }