D compiler for Android

Joakim via digitalmars-d-ldc digitalmars-d-ldc at puremagic.com
Sun Nov 29 06:12:08 PST 2015


Something cool I was just able to do, thought I'd share, I built 
a D compiler that runs on Android/ARM... which was also built on 
Android/ARM!  That's right, no cross-compiling, even when 
building the D compiler.  Using the excellent, free Termux app 
from the Play Store 
(https://play.google.com/store/apps/details?id=com.termux&hl=en) 
and the required pre-built packages, like git, CMake, and clang, 
and compiling libconfig and my slighly tweaked llvm from source, 
I'm able to run all the same tests which were cross-compiled 
before.

In fact, the failing tests in core.internal.convert now pass when 
compiled natively, which makes sense as it was the compile-time 
portion of those tests failing, though some math-related tests in 
std.math now fail.  If I revert Kai's longdouble patch, which 
isn't needed now that it's not cross-compiling, one additional 
test in std.algorithm.sorting fails, the last one.  Other than 
that, all tests that passed before pass when natively compiled.  
I'll look into those math issues next.


More information about the digitalmars-d-ldc mailing list