Skip to content

Instantly share code, notes, and snippets.

@chamons

chamons/foo.diff Secret

Created Jan 19, 2015
Embed
What would you like to do?
diff --git a/msbuild/Xamarin.Mac.Tasks/Tasks/MmpTask.cs b/msbuild/Xamarin.Mac.Tasks/Tasks/MmpTask.cs
index 493ac98..8dea225 100644
--- a/msbuild/Xamarin.Mac.Tasks/Tasks/MmpTask.cs
+++ b/msbuild/Xamarin.Mac.Tasks/Tasks/MmpTask.cs
@@ -75,27 +75,23 @@ namespace Xamarin.Mac.Tasks
if (!string.IsNullOrEmpty (ApplicationName))
args.AddQuoted ("/name:" + ApplicationName);
- if (TargetFrameworkIdentifier == "Xamarin.Mac") {
- args.Add ("/profile:Xamarin.Mac");
-
- XamMacArch arch;
- if (!Enum.TryParse<XamMacArch> (Architecture, true, out arch))
- arch = XamMacArch.Default;
+ XamMacArch arch;
+ if (!Enum.TryParse<XamMacArch> (Architecture, true, out arch))
+ arch = XamMacArch.Default;
- if (arch == XamMacArch.Default)
- arch = XamMacArch.x86_64;
+ if (arch == XamMacArch.Default)
+ arch = XamMacArch.x86_64;
- if (arch.HasFlag (XamMacArch.i386))
- args.Add ("/arch:i386");
+ if (arch.HasFlag (XamMacArch.i386))
+ args.Add ("/arch:i386");
- if (arch.HasFlag (XamMacArch.x86_64))
- args.Add ("/arch:x86_64");
- } else {
- if (TargetFrameworkVersion.StartsWith ("v", StringComparison.Ordinal))
- args.Add ("/profile:" + TargetFrameworkVersion.Substring (1));
+ if (arch.HasFlag (XamMacArch.x86_64))
+ args.Add ("/arch:x86_64");
- args.Add ("/arch:i386");
- }
+ if (TargetFrameworkIdentifier == "Xamarin.Mac")
+ args.Add ("/profile:Xamarin.Mac");
+ else if (TargetFrameworkVersion.StartsWith ("v", StringComparison.Ordinal))
+ args.Add ("/profile:" + TargetFrameworkVersion.Substring (1));
if (UseSGen)
args.Add ("/sgen");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment