Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormonojenkins <jo.shields+jenkins@xamarin.com>2018-09-20 00:16:02 +0300
committerLudovic Henry <luhenry@microsoft.com>2018-09-20 00:16:02 +0300
commit7c898271e733c7416f36e9c9df6aa61128ea3468 (patch)
tree813f1f479c50b1e4e94c9c98d150b509249defe0
parentadbb8f72c8b44c3f69ca1fd074d286efc7acbbdd (diff)
[offset-tool] Error out when parsing fails. (#10696)
-rw-r--r--tools/offsets-tool/MonoAotOffsetsDumper.cs5
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)