зеркало из https://github.com/mono/ikvm-fork.git
*** empty log message ***
This commit is contained in:
Родитель
84362484ff
Коммит
a4b5f86614
|
@ -58,7 +58,14 @@ class Compiler
|
||||||
return arglist;
|
return arglist;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int Main(string[] args)
|
static void Main(string[] args)
|
||||||
|
{
|
||||||
|
// FXBUG if we run a static initializer that starts a thread, we would never end,
|
||||||
|
// so we force an exit here
|
||||||
|
Environment.Exit(RealMain(args));
|
||||||
|
}
|
||||||
|
|
||||||
|
static int RealMain(string[] args)
|
||||||
{
|
{
|
||||||
AppDomain.CurrentDomain.AssemblyResolve += new ResolveEventHandler(CurrentDomain_AssemblyResolve);
|
AppDomain.CurrentDomain.AssemblyResolve += new ResolveEventHandler(CurrentDomain_AssemblyResolve);
|
||||||
System.Threading.Thread.CurrentThread.Name = "compiler";
|
System.Threading.Thread.CurrentThread.Name = "compiler";
|
||||||
|
|
|
@ -74,7 +74,7 @@ public class NetExp
|
||||||
ProcessPrivateClasses(assembly);
|
ProcessPrivateClasses(assembly);
|
||||||
zipFile.Close();
|
zipFile.Close();
|
||||||
}
|
}
|
||||||
// HACK if we run on the "classpath" assembly, the awt thread gets started,
|
// FXBUG if we run a static initializer that starts a thread, we would never end,
|
||||||
// so we force an exit here
|
// so we force an exit here
|
||||||
Environment.Exit(0);
|
Environment.Exit(0);
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче