From 8a160860840fa906cd92f88aa2c7c749ac0d0663 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Mon, 8 Jun 2020 10:33:57 +0300 Subject: [PATCH] builder: pass -bt10 for tcc (phase 1 for using tcc_backtrace) --- vlib/v/builder/cc.v | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vlib/v/builder/cc.v b/vlib/v/builder/cc.v index 704ea8ea06..c9fbdba997 100644 --- a/vlib/v/builder/cc.v +++ b/vlib/v/builder/cc.v @@ -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,