mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-16 14:31:59 +00:00
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
This commit is contained in:
parent
b156c5d376
commit
cfe96c8051
@ -9,7 +9,9 @@ AC_DEFUN([AC_CXX_USE_VISIBILITY_INLINES_HIDDEN],
|
|||||||
[ AC_LANG_PUSH([C++])
|
[ AC_LANG_PUSH([C++])
|
||||||
oldcxxflags="$CXXFLAGS"
|
oldcxxflags="$CXXFLAGS"
|
||||||
CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
|
CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
|
||||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM()],
|
AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
|
||||||
|
[template <typename T> struct X { inline void f() {} };],
|
||||||
|
[X<int>().f();])],
|
||||||
[llvm_cv_cxx_visibility_inlines_hidden=yes],[llvm_cv_cxx_visibility_inlines_hidden=no])
|
[llvm_cv_cxx_visibility_inlines_hidden=yes],[llvm_cv_cxx_visibility_inlines_hidden=no])
|
||||||
CXXFLAGS="$oldcxxflags"
|
CXXFLAGS="$oldcxxflags"
|
||||||
AC_LANG_POP([C++])
|
AC_LANG_POP([C++])
|
||||||
|
4
configure
vendored
4
configure
vendored
@ -20993,11 +20993,11 @@ _ACEOF
|
|||||||
cat confdefs.h >>conftest.$ac_ext
|
cat confdefs.h >>conftest.$ac_ext
|
||||||
cat >>conftest.$ac_ext <<_ACEOF
|
cat >>conftest.$ac_ext <<_ACEOF
|
||||||
/* end confdefs.h. */
|
/* end confdefs.h. */
|
||||||
|
template <typename T> struct X { inline void f() {} };
|
||||||
int
|
int
|
||||||
main ()
|
main ()
|
||||||
{
|
{
|
||||||
|
X<int>().f();
|
||||||
;
|
;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user