Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add NIECZA_KEEP_IL for bootstrap project
  • Loading branch information
sorear committed Oct 28, 2011
1 parent e42a15a commit 82c7878
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions lib/Kernel.cs
Expand Up @@ -640,8 +640,11 @@ public sealed class RuntimeUnit : IFreeze {

for (int i = 0; i < ths.Length; i++) {
ths[i].FillSubInfo(type);
our_subs[i].nam_str = null;
our_subs[i].nam_refs = null;

if (!Config.KeepIL) {
our_subs[i].nam_str = null;
our_subs[i].nam_refs = null;
}
}

EmitUnit.Current = null;
Expand Down Expand Up @@ -5862,5 +5865,7 @@ public class Config {
Environment.GetEnvironmentVariable("NIECZA_C3_TRACE") != null;
public static readonly bool SerTrace =
Environment.GetEnvironmentVariable("NIECZA_SER_TRACE") != null;
public static readonly bool KeepIL =
Environment.GetEnvironmentVariable("NIECZA_KEEP_IL") != null;
}
}

0 comments on commit 82c7878

Please sign in to comment.