Browse Source

Fixed the system module linking itself when auto-compiling.

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

5
src/Generator/Driver.cs

@ -434,8 +434,9 @@ namespace CppSharp @@ -434,8 +434,9 @@ namespace CppSharp
CompilerOptions = compilerOptions.ToString()
};
compilerParameters.ReferencedAssemblies.Add(
string.Format("{0}.dll", AST.Module.SystemModule.LibraryName));
if (module != AST.Module.SystemModule)
compilerParameters.ReferencedAssemblies.Add(
string.Format("{0}.dll", AST.Module.SystemModule.LibraryName));
// add a reference to System.Core
compilerParameters.ReferencedAssemblies.Add(typeof(Enumerable).Assembly.Location);

Loading…
Cancel
Save