From 5be8b47e1c7311242390190763b0d820d0e232de Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Thu, 31 Oct 2019 20:32:34 +0300 Subject: [PATCH] cc.v: disable tcc on android --- vlib/compiler/cc.v | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vlib/compiler/cc.v b/vlib/compiler/cc.v index 0fa19bc0aa..25dbb842ff 100644 --- a/vlib/compiler/cc.v +++ b/vlib/compiler/cc.v @@ -65,6 +65,7 @@ fn (v mut V) cc() { // TODO if -cc = cc, TCC is still used, default compiler should be // used instead. $if linux { + $if !android { vdir := os.dir(vexe) tcc_3rd := '$vdir/thirdparty/tcc/bin/tcc' //println('tcc third "$tcc_3rd"') @@ -84,6 +85,7 @@ fn (v mut V) cc() { v.pref.ccompiler = tcc_path } } + } //linux_host := os.user_os() == 'linux' v.log('cc() isprod=$v.pref.is_prod outname=$v.out_name') mut a := [v.pref.cflags, '-std=gnu11', '-w'] // arguments for the C compiler