Permalink
Browse files

Fix depended module autocompilation

  • Loading branch information...
1 parent 1de763c commit 1767fe8e82671fbc1a8885756e146dfc63acfe20 @sorear committed Jun 1, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/CLRBackend.cs
View
3 lib/CLRBackend.cs
@@ -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);
@@ -4715,6 +4715,7 @@ public class CLRBackend {
c.Process(root, ismain);
c.Finish(outfile);
+ root.clrType = c.tb.CreateType();
used_units = null; Current = null;
}
}

0 comments on commit 1767fe8

Please sign in to comment.