Skip to content

Instantly share code, notes, and snippets.

@stisa
Created March 23, 2017 06:50
Show Gist options
  • Save stisa/e3d0a3c1649e228b03b50ccf6eaf93de to your computer and use it in GitHub Desktop.
Save stisa/e3d0a3c1649e228b03b50ccf6eaf93de to your computer and use it in GitHub Desktop.
recompile nim on android

Install glob

Apt install libandroid-glob
Apt install libandroid-glob-dev

compiler/nim.cfg

define:android
passL:"/data/data/com.termux/files/usr/lib/libandroid-glob.so"

lib/posix/posix.nim

line 1618: when not defined(macosx) and not defined(android): line 278: when defined(macosx) or defined(android): lib/pure/osproc.nim

bin/sh -> sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment