mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-04 07:32:13 +00:00
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
This commit is contained in:
parent
30450e89d9
commit
b8c20b8d78
@ -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"
|
||||
|
4
configure
vendored
4
configure
vendored
@ -20986,14 +20986,14 @@ ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ex
|
||||
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 ()
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user