cc.v: disable tcc on android
parent
b1eb9d6b15
commit
5be8b47e1c
|
@ -65,6 +65,7 @@ fn (v mut V) cc() {
|
||||||
// TODO if -cc = cc, TCC is still used, default compiler should be
|
// TODO if -cc = cc, TCC is still used, default compiler should be
|
||||||
// used instead.
|
// used instead.
|
||||||
$if linux {
|
$if linux {
|
||||||
|
$if !android {
|
||||||
vdir := os.dir(vexe)
|
vdir := os.dir(vexe)
|
||||||
tcc_3rd := '$vdir/thirdparty/tcc/bin/tcc'
|
tcc_3rd := '$vdir/thirdparty/tcc/bin/tcc'
|
||||||
//println('tcc third "$tcc_3rd"')
|
//println('tcc third "$tcc_3rd"')
|
||||||
|
@ -84,6 +85,7 @@ fn (v mut V) cc() {
|
||||||
v.pref.ccompiler = tcc_path
|
v.pref.ccompiler = tcc_path
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
//linux_host := os.user_os() == 'linux'
|
//linux_host := os.user_os() == 'linux'
|
||||||
v.log('cc() isprod=$v.pref.is_prod outname=$v.out_name')
|
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
|
mut a := [v.pref.cflags, '-std=gnu11', '-w'] // arguments for the C compiler
|
||||||
|
|
Loading…
Reference in New Issue