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()

View file

@ -139,7 +139,7 @@ proc gcTests(r: var TResults, cat: Category, options: string) =
" -d:release --gc:markAndSweep", cat, actionRun)
template test(filename: untyped) =
testWithoutBoehm filename
when not defined(windows):
when not defined(windows) and not defined(android):
# AR: cannot find any boehm.dll on the net, right now, so disabled
# for windows:
testSpec r, makeTest("tests/gc" / filename, options &