Last active
December 22, 2015 18:46
-
-
Save rolfbjarne/ba6de6ee7738c642d422 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
commit 7522a024cd866a618babb1239246bea4359c12f9 | |
Author: Rolf Bjarne Kvinge <[email protected]> | |
Date: Tue Dec 22 19:38:18 2015 +0100 | |
[mtouch] Specify the right triple when aot-compiling. | |
diff --git a/tools/mtouch/mtouch.cs b/tools/mtouch/mtouch.cs | |
index cfd0f0d..1cab990 100644 | |
--- a/tools/mtouch/mtouch.cs | |
+++ b/tools/mtouch/mtouch.cs | |
@@ -527,7 +527,19 @@ partial class MTouch { | |
args.Append (aot_other_args).Append (" "); | |
args.Append ("--aot=mtriple="); | |
args.Append (enable_thumb ? arch.Replace ("arm", "thumb") : arch); | |
- args.Append ("-ios,"); | |
+ switch (app.Platform) { | |
+ case Xamarin.Utils.ApplePlatform.iOS: | |
+ args.Append ("-ios,"); | |
+ break; | |
+ case Xamarin.Utils.ApplePlatform.TVOS: | |
+ args.Append ("-tvos,"); | |
+ break; | |
+ case Xamarin.Utils.ApplePlatform.WatchOS: | |
+ args.Append ("-watchos,"); | |
+ break; | |
+ default: | |
+ throw ErrorHelper.CreateError (71, "Unknown platform: {0}. This usually indicates a bug in Xamarin.iOS; please file a bug report at http://bugzilla.xamarin.com with a test case.", app.Platform); | |
+ } | |
args.Append (aot_args); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment