From 8fc5914ad77601c0b444337bd95617ec5c9a9006 Mon Sep 17 00:00:00 2001 From: Matthias Benkard Date: Fri, 14 Mar 2008 18:23:17 +0100 Subject: Disable manual NSProcessInfo initialisation on GNUstep systems. darcs-hash:07683de74a6675f89f20fdc933a1c0eeadb60725 --- Objective-C/libobjcl.m | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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) @@ -112,6 +118,7 @@ objcl_initialise_runtime (void) process = [NSProcessInfo processInfo]; } #endif +#endif #endif TRACE (@"Allocate exceptions."); -- cgit v1.2.3