Search code examples
c#iphonemonoxamarin.iosmonodevelop

Enabling LLVM in MonoDevelop?


I'm trying to enable the LLVM option in MonoDevelop. This webpage says to pass the line --enable-llvm=yes to configure it.

I assume this means I should add it to the 'additional mtouch arguments' section listed under iPhone build in MonoDevelop? When I do, I get compiler errors:

Compiling to native code /Developer/MonoTouch/usr/bin/mtouch -v --nomanifest --nosign -dev "/Users/ahmedhakeem/Documents/Projects/JabberEngine2/MyCode/ChicksnVixens/bin/iPhone/Debug/aChicks.app" "-r=/Users/ahmedhakeem/Documents/Projects/JabberEngine2/ExEn/ExEnEmTouch/bin/iPhone/Release/ExEnEmTouch.dll" "-r=/Users/ahmedhakeem/Documents/Projects/JabberEngine2/ExEn/ExEnCore/bin/iPhone/Release/ExEnCore.dll" "-r=/Users/ahmedhakeem/Documents/Projects/JabberEngine2/MyCode/Farseer Physics Engine 3.3.1 XNA/bin/iPhone/Debug/FarseerPhysics.dll" "-r=/Users/ahmedhakeem/Documents/Projects/JabberEngine2/MyCode/ChicksnVixens/Content/Jabber.dll" "-r=/Developer/MonoTouch/usr/lib/mono/2.1/System.dll" "-r=/Developer/MonoTouch/usr/lib/mono/2.1/System.Xml.dll" "-r=/Developer/MonoTouch/usr/lib/mono/2.1/System.Core.dll" "-r=/Developer/MonoTouch/usr/lib/mono/2.1/monotouch.dll" "-r=/Developer/MonoTouch/usr/lib/mono/2.1/OpenTK.dll" "-r=/Developer/MonoTouch/usr/lib/mono/2.1/System.Xml.Linq.dll" -nolink "-sdk=4.3" --enable-llvm=yes "/Users/ahmedhakeem/Documents/Projects/JabberEngine2/MyCode/ChicksnVixens/bin/iPhone/Debug/aChicks.exe" Framework is: /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk Error: You should provide one root assembly only

Any ideas?


Solution

  • Check the 'Advanced' tab on the iPhone Build section of the project's options - on my setup there's a checkbox to enable LLVM.

    I'm using MonoDevelop 2.4.2 and MonoTouch 4.03.