summaryrefslogtreecommitdiff
path: root/Objective-C/libobjcl.m
diff options
context:
space:
mode:
Diffstat (limited to 'Objective-C/libobjcl.m')
-rw-r--r--Objective-C/libobjcl.m9
1 files changed, 8 insertions, 1 deletions
diff --git a/Objective-C/libobjcl.m b/Objective-C/libobjcl.m
index 06620e2..8c544f8 100644
--- a/Objective-C/libobjcl.m
+++ b/Objective-C/libobjcl.m
@@ -96,9 +96,15 @@ objcl_initialise_runtime (void)
TRACE (@"Initialise runtime.");
objcl_autorelease_pool = [[NSAutoreleasePool alloc] init];
+#if 0
#ifndef __NEXT_RUNTIME__
-#if defined(GS_FAKE_MAIN) || defined(GS_PASS_ARGUMENTS) \
+#if defined(GS_FAKE_MAIN) || defined(GS_PASS_ARGUMENTS) \
|| defined(LIB_FOUNDATION_LIBRARY)
+ /* FIXME: The following is disabled because it makes [NSBundle
+ allBundles] fail with an NSInternalInconsistencyException.
+ This may be because we lie about the executable path.
+
+ Then again, it may be completely unneeded, anyway. */
TRACE (@"Initialise environment.");
if (!process)
@@ -113,6 +119,7 @@ objcl_initialise_runtime (void)
}
#endif
#endif
+#endif
TRACE (@"Allocate exceptions.");
objcl_oom_exception = [NSException exceptionWithName: @"MLKOutOfMemoryException"