Browse Source

Restored the sorting of modules by dependencies which had regressed.

It had stopped working since the introduction of the system module.

Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
pull/696/head
Dimitar Dobrev 9 years ago
parent
commit
0531573875
  1. 2
      src/Generator/Driver.cs

2
src/Generator/Driver.cs

@ -222,7 +222,7 @@ namespace CppSharp
public void SortModulesByDependencies() public void SortModulesByDependencies()
{ {
if (Options.Modules.All(m => m.Libraries.Any())) if (Options.Modules.All(m => m.Libraries.Any() || m == Options.SystemModule))
{ {
var sortedModules = Options.Modules.TopologicalSort(m => var sortedModules = Options.Modules.TopologicalSort(m =>
{ {

Loading…
Cancel
Save