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
path: root/tools
diff options
context:
space:
mode:
authorBernhard Urban <bernhard.urban@xamarin.com>2017-07-04 12:34:30 +0300
committerBernhard Urban <bernhard.urban@xamarin.com>2017-07-05 13:01:10 +0300
commit92a45afd7b4875bc8998327fd3ab60206c691726 (patch)
treec597b91b657a322d794ad3b3eb86b917b9ab0b9e /tools
parent0c6932a985175a5cf0cbc59ffd3af4abf3db248e (diff)
[offsets-tool] allow to set targetdir for iOS targets, so it's possible to dump offsets without maccore
Diffstat (limited to 'tools')
-rw-r--r--tools/offsets-tool/MonoAotOffsetsDumper.cs12
1 files changed, 8 insertions, 4 deletions
diff --git a/tools/offsets-tool/MonoAotOffsetsDumper.cs b/tools/offsets-tool/MonoAotOffsetsDumper.cs
index 0de260a3237..0775292a106 100644
--- a/tools/offsets-tool/MonoAotOffsetsDumper.cs
+++ b/tools/offsets-tool/MonoAotOffsetsDumper.cs
@@ -337,10 +337,14 @@ namespace CppSharp
break;
case TargetPlatform.WatchOS:
case TargetPlatform.iOS: {
- string targetPath = Path.Combine (MaccoreDir, "builds");
- if (!Directory.Exists (MonoDir))
- MonoDir = Path.GetFullPath (Path.Combine (targetPath, "../../mono"));
- targetBuild = Path.Combine(targetPath, target.Build);
+ if (!string.IsNullOrEmpty (TargetDir)) {
+ targetBuild = TargetDir;
+ } else {
+ string targetPath = Path.Combine (MaccoreDir, "builds");
+ if (!Directory.Exists (MonoDir))
+ MonoDir = Path.GetFullPath (Path.Combine (targetPath, "../../mono"));
+ targetBuild = Path.Combine(targetPath, target.Build);
+ }
break;
}
default: