From: Bernhard Urban Date: Tue, 4 Jul 2017 09:34:30 +0000 (+0200) Subject: [offsets-tool] allow to set targetdir for iOS targets, so it's possible to dump offse... X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=commitdiff_plain;ds=sidebyside;h=92a45afd7b4875bc8998327fd3ab60206c691726;p=mono.git [offsets-tool] allow to set targetdir for iOS targets, so it's possible to dump offsets without maccore --- 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: