Work around a swig segfault issue when building on Mac OS
authorMorgan Deters <mdeters@cs.nyu.edu>
Tue, 3 Dec 2013 20:40:00 +0000 (15:40 -0500)
committerMorgan Deters <mdeters@cs.nyu.edu>
Tue, 3 Dec 2013 21:04:32 +0000 (16:04 -0500)
src/bindings/swig.h
src/util/tls.h.in

index 94ad91dc6fed731aaf1a21360af7e6f3b5b73244..2fa6ba4f0e7eeb2a8c9029b7d5960825ab571183 100644 (file)
 #endif /* SWIG_VERSION */
 
 %import "cvc4_public.h"
-%import "util/tls.h"
+#warning Working around a SWIG segfault in C++ template parsing.
+//%import "util/tls.h"
+#define CVC4_THREADLOCAL(__type...) __type
+#define CVC4_THREADLOCAL_PUBLIC(__type...) CVC4_PUBLIC __type
+#define CVC4_THREADLOCAL_TYPE(__type...) __type
 
 // swig doesn't like the __thread storage class...
 #define __thread
index 2512e481d16555f938c546b48a0cacbc0ba74c76..e13149c3a290493b0b9630dafc43c3ec4ac4e913 100644 (file)
@@ -195,4 +195,4 @@ public:
 
 #endif /* @CVC4_TLS_SUPPORTED@ */
 
-#endif /* _CVC4__TLS_H */
+#endif /* __CVC4__TLS_H */