@GordonBGood, great job! It's a pity the answer was deleted on Quora. I've updated nimx naketools a few weeks ago to use ndk toolchain directly. So that compilation goes as follows: 1. Run nim to produce a static lib. 2. Repeat 1 for every arch. 3. Run gradle to link everything together. This solves quite a bunch of problems, like:
* nimbase.h dependency is gone
* `{.compile.}` pragma works
* `{.passC.}` pragma works
* Long paths problem on windows is gone
