]> git.saurik.com Git - wxWidgets.git/commitdiff
Disable symbols visibility support for the Clang compiler.
authorVáclav Slavík <vslavik@fastmail.fm>
Sun, 31 Jul 2011 13:25:30 +0000 (13:25 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Sun, 31 Jul 2011 13:25:30 +0000 (13:25 +0000)
Even Clang++ shipped with Xcode 4.1 still can't handle visibility
of non-inline methods in exported template classes if the default
visibility is 'hidden'.

Disable visibility support for Clang for now, we'll revisit it in the future.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68471 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

build/aclocal/visibility.m4
configure

index 52c97f9c8ef605d1f7481ceaf66e1227ecb29932..05f9b80dece0957dcc582245299ab444e2880c2d 100644 (file)
@@ -49,6 +49,11 @@ AC_DEFUN([WX_VISIBILITY],
          error this platform has no visibility;
          #endif
 
+         /* at the time of Xcode 4.1 / Clang 3, Clang++ still didn't have the bugs sorted out: */
+         #if defined(__clang__)
+         clang compiler is still broken w.r.t. visibility;
+         #endif
+
          extern __attribute__((__visibility__("hidden"))) int hiddenvar;
          extern __attribute__((__visibility__("default"))) int exportedvar;
          extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
index c79bdc5bb45de1945d5931c944043e9f56b35ef9..f602dbf16b00865cb7844a1f1f0955cb5938fb27 100755 (executable)
--- a/configure
+++ b/configure
@@ -35001,6 +35001,11 @@ cat >>conftest.$ac_ext <<_ACEOF
          error this platform has no visibility;
          #endif
 
+         /* at the time of Xcode 4.1 / Clang 3, Clang++ still didn't have the bugs sorted out: */
+         #if defined(__clang__)
+         clang compiler is still broken w.r.t. visibility;
+         #endif
+
          extern __attribute__((__visibility__("hidden"))) int hiddenvar;
          extern __attribute__((__visibility__("default"))) int exportedvar;
          extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);