From 9bd8535f18f4a9666c7a7b8a924d02d9c861f1ed Mon Sep 17 00:00:00 2001 From: Joao Matos Date: Fri, 6 Jul 2018 02:52:09 +0100 Subject: [PATCH] Only generate the system module in C# generators. --- src/Generator/Generator.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Generator/Generator.cs b/src/Generator/Generator.cs index 4a1d9652..7bf9122f 100644 --- a/src/Generator/Generator.cs +++ b/src/Generator/Generator.cs @@ -85,7 +85,7 @@ namespace CppSharp.Generators { GenerateTemplates(outputs, units.Where(u => !u.IsSystemHeader)); - if (Context.Options.SystemModule != null) + if (Context.Options.IsCSharpGenerator && Context.Options.SystemModule != null) outputs.Add(GenerateModuleTemplate(Context.Options.SystemModule)); }