cc.v: disable tcc on android

pull/2606/head
Alexander Medvednikov 2019-10-31 20:32:34 +03:00
parent b1eb9d6b15
commit 5be8b47e1c
1 changed files with 2 additions and 0 deletions

View File

@ -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