llvm.org GIT mirror llvm / b8c20b8
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 Benjamin Kramer 7 years ago
2 changed file(s) with 4 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
77 [llvm_cv_cxx_visibility_inlines_hidden],
88 [ AC_LANG_PUSH([C++])
99 oldcxxflags="$CXXFLAGS"
10 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
10 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden -Werror"
1111 AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
12 [template struct X { inline void f() {} };],
12 [template struct X { void __attribute__((noinline)) f() {} };],
1313 [X().f();])],
1414 [llvm_cv_cxx_visibility_inlines_hidden=yes],[llvm_cv_cxx_visibility_inlines_hidden=no])
1515 CXXFLAGS="$oldcxxflags"
2098520985 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2098620986
2098720987 oldcxxflags="$CXXFLAGS"
20988 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
20988 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden -Werror"
2098920989 cat >conftest.$ac_ext <<_ACEOF
2099020990 /* confdefs.h. */
2099120991 _ACEOF
2099220992 cat confdefs.h >>conftest.$ac_ext
2099320993 cat >>conftest.$ac_ext <<_ACEOF
2099420994 /* end confdefs.h. */
20995 template struct X { inline void f() {} };
20995 template struct X { void __attribute__((noinline)) f() {} };
2099620996 int
2099720997 main ()
2099820998 {