Browse Source

Disabled a type of false errors when auto-compiling on OS X.

Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
pull/642/head
Dimitar Dobrev 10 years ago
parent
commit
99902c5580
  1. 4
      src/Generator/Driver.cs

4
src/Generator/Driver.cs

@ -417,7 +417,9 @@ namespace CppSharp @@ -417,7 +417,9 @@ namespace CppSharp
compilerParameters, compileUnits.ToArray());
}
var errors = compilerResults.Errors.Cast<CompilerError>().Where(e => !e.IsWarning).ToList();
var errors = compilerResults.Errors.Cast<CompilerError>().Where(e => !e.IsWarning &&
// HACK: auto-compiling on OS X produces "errors" which do not affect compilation so we ignore them
(!Platform.IsMacOS || !e.ErrorText.EndsWith("(Location of the symbol related to previous warning)", StringComparison.Ordinal))).ToList();
foreach (var error in errors)
Diagnostics.Error(error.ToString());

Loading…
Cancel
Save