Only disable __thread with clang on Mac OS X
authorJeffrey Stedfast <jeff@xamarin.com>
Mon, 19 Aug 2013 15:30:31 +0000 (11:30 -0400)
committerJeffrey Stedfast <jeff@xamarin.com>
Mon, 19 Aug 2013 15:30:31 +0000 (11:30 -0400)
configure.in

index 6ff0a7551c63a0ad87c9b4800ef34852d8f5faa9..0ab2f2b80e7aaa7204dbceb4625afeaf0d36071c 100755 (executable)
@@ -1575,8 +1575,8 @@ if test x$target_win32 = xno; then
                AC_MSG_RESULT(disabled)
        else
                AC_TRY_RUN([
-                       #ifdef __clang__
-                       #error "__thread does not currently work with clang"
+                       #if defined(__APPLE__) && defined(__clang__)
+                       #error "__thread does not currently work with clang on Mac OS X"
                        #endif
                        
                        #include <pthread.h>