summary refs log tree commit diff stats
path: root/config
diff options
context:
space:
mode:
authorFredrik Høisæther Rasch <fredrik.rasch@gmail.com>2017-08-06 02:18:15 +0200
committerAndreas Rumpf <rumpf_a@web.de>2017-08-06 02:18:15 +0200
commitc39e2029762387d05f7b3d81490c6129703c1b60 (patch)
tree68b9b76672de12c670808f882a014f77d7c40eb9 /config
parentbbeadf184e613d6ae476fe4252d60b1e3a92e7dd (diff)
downloadNim-c39e2029762387d05f7b3d81490c6129703c1b60.tar.gz
Introduce first class support for Android (#5772)
Diffstat (limited to 'config')
-rw-r--r--config/nim.cfg10
1 files changed, 10 insertions, 0 deletions
diff --git a/config/nim.cfg b/config/nim.cfg
index 291d2a3bc..042a94eaa 100644
--- a/config/nim.cfg
+++ b/config/nim.cfg
@@ -90,6 +90,16 @@ path="$lib/pure"
   @end
 @end
 
+@if android:
+  cc = clang
+  gcc.options.linker = "-landroid-glob"
+  gcc.cpp.options.linker = "-landroid-glob"
+  clang.options.linker = "-landroid-glob"
+  clang.cpp.options.linker = "-landroid-glob"
+  tcc.options.linker = "-landroid-glob"
+  define:"useShPath:/system/bin/sh"
+@end
+
 # Configuration for the Intel C/C++ compiler:
 @if windows:
   icl.options.speed = "/Ox /arch:SSE2"