You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// __dso_handle is resolved by Mac OS X dynamic linker.
extern void *__dso_handle attribute ((visibility ("hidden")));
#endif
@@ -309,9 +310,10 @@
// If the global is external, just remember the address.
if (GV->isExternal()) {
#ifdef APPLE
-#if (MAC_OS_X_VERSION_MIN_REQUIRED > MAC_OS_X_VERSION_10_4) || \
// Apple gcc defaults to -fuse-cxa-atexit (i.e. calls __cxa_atexit instead
// of atexit). It passes the address of linker generated symbol __dso_handle
// to the function.
The text was updated successfully, but these errors were encountered:
Extended Description
Following patch required to successfully compile (and link) lli - problem traced
to JIT.cpp:
Index: lib/ExecutionEngine/JIT/JIT.cpp
RCS file: /var/cvs/llvm/llvm/lib/ExecutionEngine/JIT/JIT.cpp,v
retrieving revision 1.83
diff -u -r1.83 JIT.cpp
--- lib/ExecutionEngine/JIT/JIT.cpp 12 Dec 2006 01:17:41 -0000 1.83
+++ lib/ExecutionEngine/JIT/JIT.cpp 17 Dec 2006 01:51:08 -0000
@@ -31,9 +31,10 @@
#ifdef APPLE
#include <AvailabilityMacros.h>
-#if (MAC_OS_X_VERSION_MIN_REQUIRED > MAC_OS_X_VERSION_10_4) || \
+#if defined(MAC_OS_X_VERSION_10_4) && \
// __dso_handle is resolved by Mac OS X dynamic linker.
extern void *__dso_handle attribute ((visibility ("hidden")));
#endif
@@ -309,9 +310,10 @@
// If the global is external, just remember the address.
if (GV->isExternal()) {
#ifdef APPLE
-#if (MAC_OS_X_VERSION_MIN_REQUIRED > MAC_OS_X_VERSION_10_4) || \
+#if defined(MAC_OS_X_VERSION_10_4) && \
// of atexit). It passes the address of linker generated symbol __dso_handle
// to the function.
The text was updated successfully, but these errors were encountered: