diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2017-08-30 20:44:31 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2017-08-30 20:44:40 +0200 |
commit | 786f9315e381406181843d245b5ac1f8553b6fa2 (patch) | |
tree | 689f444d4e1abf60acc7bd6758c40f6bdda16969 /config/nim.cfg | |
parent | 6f6e6fe4eb812e78e087919b69c6b1d023c8536f (diff) | |
download | Nim-786f9315e381406181843d245b5ac1f8553b6fa2.tar.gz |
android target: use clang
Diffstat (limited to 'config/nim.cfg')
-rw-r--r-- | config/nim.cfg | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/config/nim.cfg b/config/nim.cfg index 821b16049..7ac87cc33 100644 --- a/config/nim.cfg +++ b/config/nim.cfg @@ -90,14 +90,16 @@ path="$lib/pure" @end @end -@if android and termux: +@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" + @if termux: + 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 @end # Configuration for the Intel C/C++ compiler: |