builder: pass -bt10 for tcc (phase 1 for using tcc_backtrace)

pull/5276/head^2
Delyan Angelov 2020-06-08 10:33:57 +03:00
parent 08814d6de4
commit 8a16086084
1 changed files with 3 additions and 0 deletions

View File

@ -336,6 +336,9 @@ fn (mut v Builder) cc() {
}
}
}
if is_cc_tcc {
a << '-bt10'
}
// Without these libs compilation will fail on Linux
// || os.user_os() == 'linux'
if !v.pref.is_bare && v.pref.build_mode != .build_module && v.pref.os in [ .linux, .freebsd,