From 786f9315e381406181843d245b5ac1f8553b6fa2 Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Wed, 30 Aug 2017 20:44:31 +0200 Subject: android target: use clang --- config/nim.cfg | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'config') 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: -- cgit 1.4.1-2-gfad0