diff options
author | Rodrigo Kumpera <kumpera@gmail.com> | 2012-11-15 23:35:10 +0400 |
---|---|---|
committer | Rodrigo Kumpera <kumpera@gmail.com> | 2012-11-15 23:35:10 +0400 |
commit | f794c69e446eb2cda3ad10d7da92ef44a4edeaa4 (patch) | |
tree | c116b5771da7e30b27f0afeabe62b8511b16d1ce /libgc | |
parent | 6399312b14dafbf106bcd7097552964a11d5f4b8 (diff) |
Disable dynamic loading for iOS simulator builds.
Diffstat (limited to 'libgc')
-rw-r--r-- | libgc/include/private/gcconfig.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libgc/include/private/gcconfig.h b/libgc/include/private/gcconfig.h index da15e905c58..ec53e3a95ea 100644 --- a/libgc/include/private/gcconfig.h +++ b/libgc/include/private/gcconfig.h @@ -312,6 +312,7 @@ # define mach_type_known # endif # ifdef DARWIN +# include "TargetConditionals.h" # if defined(__ppc__) || defined(__ppc64__) # define POWERPC # define mach_type_known @@ -320,7 +321,9 @@ # define mach_type_known # define DARWIN_DONT_PARSE_STACK # define OS_TYPE "DARWIN" -# define DYNAMIC_LOADING +# if TARGET_IPHONE_SIMULATOR == 0 +# define DYNAMIC_LOADING +# endif /* XXX: see get_end(3), get_etext() and get_end() should not be used. These aren't used when dyld support is enabled (it is by default) */ # define DATASTART ((ptr_t) get_etext()) |