diff options
author | monojenkins <jo.shields+jenkins@xamarin.com> | 2018-09-20 00:16:02 +0300 |
---|---|---|
committer | Ludovic Henry <luhenry@microsoft.com> | 2018-09-20 00:16:02 +0300 |
commit | 7c898271e733c7416f36e9c9df6aa61128ea3468 (patch) | |
tree | 813f1f479c50b1e4e94c9c98d150b509249defe0 | |
parent | adbb8f72c8b44c3f69ca1fd074d286efc7acbbdd (diff) |
[offset-tool] Error out when parsing fails. (#10696)
-rw-r--r-- | tools/offsets-tool/MonoAotOffsetsDumper.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/offsets-tool/MonoAotOffsetsDumper.cs b/tools/offsets-tool/MonoAotOffsetsDumper.cs index 2cec6f5bd74..e2f12cfe9ae 100644 --- a/tools/offsets-tool/MonoAotOffsetsDumper.cs +++ b/tools/offsets-tool/MonoAotOffsetsDumper.cs @@ -190,7 +190,7 @@ namespace CppSharp return false; } - public static void Main(string[] args) + public static int Main(string[] args) { ParseCommandLineArgs(args); @@ -229,10 +229,11 @@ namespace CppSharp BuildParseOptions(driver, target); if (!driver.ParseCode()) - return; + return 1; Dump(driver.Context.ASTContext, driver.Context.TargetInfo, target); } + return 0; } static void BuildParseOptions(Driver driver, Target target) |