Skip to content

Commit

Permalink
Fix depended module autocompilation
Browse files Browse the repository at this point in the history
  • Loading branch information
sorear committed Jun 1, 2011
1 parent 1de763c commit 1767fe8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/CLRBackend.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4302,7 +4302,7 @@ public class CLRBackend {
AssemblyName an = new AssemblyName(mobname);
this.dir = dir;
ab = AppDomain.CurrentDomain.DefineDynamicAssembly(an,
(filename == null ? AssemblyBuilderAccess.Run :
(filename == null ? AssemblyBuilderAccess.RunAndSave :
AssemblyBuilderAccess.Save), dir);
mob = filename == null ? ab.DefineDynamicModule(mobname) :
ab.DefineDynamicModule(mobname, filename);
Expand Down Expand Up @@ -4715,6 +4715,7 @@ public static void Main(string[] args) {
c.Process(root, ismain);

c.Finish(outfile);
root.clrType = c.tb.CreateType();
used_units = null; Current = null;
}
}
Expand Down

0 comments on commit 1767fe8

Please sign in to comment.