diff --git a/src/Generator/Driver.cs b/src/Generator/Driver.cs index 380dd58b..5db6b8ed 100644 --- a/src/Generator/Driver.cs +++ b/src/Generator/Driver.cs @@ -417,7 +417,9 @@ namespace CppSharp compilerParameters, compileUnits.ToArray()); } - var errors = compilerResults.Errors.Cast().Where(e => !e.IsWarning).ToList(); + var errors = compilerResults.Errors.Cast().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());