xen2 / SharpLang

Compiles .NET/C# to native code using LLVM framework. No longer active, consider migrating to https://github.com/dotnet/corert
Other
283 stars 39 forks source link

LLVM compilation on Android & iOS #27

Open amerkoleci opened 9 years ago

amerkoleci commented 9 years ago

Hi, I was trying to setup some fast script for building to Android, iOS, Emscripten how would the compilation process look like?

How to compile the generated LLVM bytecode?

Thanks,

Amer

xen2 commented 9 years ago

6 relates to Enscripten.

Android and iOS, probably need to use their respective Clang+LD toolchains. I haven't done any work toward that yet, so feel free to investigate.

tritao commented 9 years ago

You need to teach the driver about the NDK and the Xcode toolchains though I'm not sure if the official toolchains provide the tools needed (at least llc and ld I think).

JeroMiya commented 9 years ago

I have a little experience getting Mono to build on the Android NDK. There's a way to specify environment variables for libraries, headers, and build tools in the NDK prior to running autoconf as if you were doing a regular *nix build. I'm not sure if that applies here.