Skip to content

Commit

Permalink
fix: swap backwards check on emitdebuginformation
Browse files Browse the repository at this point in the history
  • Loading branch information
rdavisau committed Mar 2, 2021
1 parent 88669c7 commit 2038767
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Expand Up @@ -115,10 +115,10 @@ public EmitResult EmitAssembly(CSharpCompilation compilation, out EmittedAssembl

var result =
_options.EmitDebugInformation
? compilation.Emit(asmStream)
: compilation.Emit(
? compilation.Emit(
asmStream,
pdbStream, options: new EmitOptions(debugInformationFormat: DebugInformationFormat.PortablePdb));
pdbStream, options: new EmitOptions(debugInformationFormat: DebugInformationFormat.PortablePdb))
: compilation.Emit(asmStream);

emittedAssembly = new EmittedAssembly
{
Expand Down
1 change: 1 addition & 0 deletions src/heads/tbc.host.console/ConsoleConfig.cs
Expand Up @@ -34,6 +34,7 @@ public static class ConsoleConfig
= new AssemblyCompilationOptions
{
Debug = true,
EmitDebugInformation = true,
}
.ToJObject(),

Expand Down

0 comments on commit 2038767

Please sign in to comment.