Skip to content

Instantly share code, notes, and snippets.

@chamons

chamons/foo.diff Secret

Created Jan 17, 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..1469792 100644
--- a/msbuild/Xamarin.Mac.Tasks/Tasks/MmpTask.cs
+++ b/msbuild/Xamarin.Mac.Tasks/Tasks/MmpTask.cs
@@ -75,26 +75,25 @@ 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");
- if (arch.HasFlag (XamMacArch.x86_64))
- args.Add ("/arch:x86_64");
- } else {
+ if (TargetFrameworkIdentifier == "Xamarin.Mac") {
+ args.Add ("/profile:Xamarin.Mac");
+ }
+ else {
if (TargetFrameworkVersion.StartsWith ("v", StringComparison.Ordinal))
args.Add ("/profile:" + TargetFrameworkVersion.Substring (1));
-
- args.Add ("/arch:i386");
}
if (UseSGen)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment