]> granicus.if.org Git - gc/commitdiff
Disable dynamic loading for iOS simulator builds.
authorRodrigo Kumpera <kumpera@gmail.com>
Thu, 15 Nov 2012 19:35:10 +0000 (14:35 -0500)
committerIvan Maidanski <ivmai@mail.ru>
Sun, 15 Sep 2013 08:59:39 +0000 (12:59 +0400)
include/private/gcconfig.h

index da15e905c58e169fd292040949bf693ef5229e78..ec53e3a95eab84e5de67b9b3247c96516ee74e70 100644 (file)
 #   define mach_type_known
 # endif
 # ifdef DARWIN
+#    include "TargetConditionals.h"
 #   if defined(__ppc__)  || defined(__ppc64__)
 #    define POWERPC
 #    define mach_type_known
 #    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())