Introduce first class support for Android (#5772)

This commit is contained in:
Fredrik Høisæther Rasch 2017-08-06 02:18:15 +02:00 • committed by Andreas Rumpf
commit c39e202976
15 changed files with 109 additions and 14 deletions

View file

@ -9,7 +9,11 @@ when defined(windows):
discard
else:
let dir1 = getCurrentDir()
var process = startProcess("/usr/bin/env", "/usr/bin", ["true"])
var process: Process
when defined(android):
process = startProcess("/system/bin/env", "/system/bin", ["true"])
else:
process = startProcess("/usr/bin/env", "/usr/bin", ["true"])
let dir2 = getCurrentDir()
discard process.waitForExit()
process.close()