Browse Source

Fixed `Options.DryRun` to not generate any binding code.

pull/1170/head
Joao Matos 6 years ago committed by Dimitar Dobrev
parent
commit
1dad81dab6
  1. 4
      src/Generator/Driver.cs

4
src/Generator/Driver.cs

@ -448,6 +448,8 @@ namespace CppSharp @@ -448,6 +448,8 @@ namespace CppSharp
if (!options.Quiet)
Diagnostics.Message("Generating code...");
if (!options.DryRun)
{
var outputs = driver.GenerateCode();
foreach (var output in outputs)
@ -458,8 +460,6 @@ namespace CppSharp @@ -458,8 +460,6 @@ namespace CppSharp
}
}
if (!driver.Options.DryRun)
{
driver.SaveCode(outputs);
if (driver.Options.IsCSharpGenerator && driver.Options.CompileCode)
foreach (var module in driver.Options.Modules)

Loading…
Cancel
Save