comparison main.d @ 165:25ede4f66bda

Temporarily disabled GC (again) because phobos fails to compile with it (looks like some ObjSymbols are being falsely collected, see Library.d:666) Getting rid of global state (i.e global and static variables) to allow running concurrent compilation
author korDen
date Thu, 30 Sep 2010 10:04:32 +0400
parents 8bf07a566fdf
children e7769d53e750
comparison
equal deleted inserted replaced
164:8bf07a566fdf 165:25ede4f66bda
172 _d_args = cast(string[]) args; 172 _d_args = cast(string[]) args;
173 173
174 void runMain() 174 void runMain()
175 { 175 {
176 CrashHandlerInit(); 176 CrashHandlerInit();
177 result = main(_d_args); 177 // while (true)
178 {
179 result = main(_d_args);
180 }
178 } 181 }
179 182
180 void runAll() 183 void runAll()
181 { 184 {
182 gc_init(); 185 gc_init();
209 } 212 }
210 } 213 }
211 214
212 int main(string[] args) 215 int main(string[] args)
213 { 216 {
217 GC.disable();
218
214 Array files = new Array(); 219 Array files = new Array();
215 Array libmodules = new Array(); 220 Array libmodules = new Array();
216 Module m; 221 Module m;
217 int status = ExitCode.EXIT_SUCCESS; 222 int status = ExitCode.EXIT_SUCCESS;
218 int argcstart = args.length; 223 int argcstart = args.length;