From 69c37402d4074a23cceff5184a965b05ed079f83 Mon Sep 17 00:00:00 2001 From: Major Taylor Date: Tue, 26 Jan 2021 01:26:54 -0500 Subject: [PATCH] backtrace: fix tcc backtrace windows compilation error (#8348) --- vlib/builtin/builtin_windows.c.v | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/vlib/builtin/builtin_windows.c.v b/vlib/builtin/builtin_windows.c.v index 63ce64fe7b..9990278a06 100644 --- a/vlib/builtin/builtin_windows.c.v +++ b/vlib/builtin/builtin_windows.c.v @@ -182,14 +182,17 @@ fn print_backtrace_skipping_top_frames_tcc(skipframes int) bool { $if tinyc { $if no_backtrace ? { eprintln('backtraces are disabled') + return false } $else { C.tcc_backtrace('Backtrace') - return false + return true } } $else { eprintln('print_backtrace_skipping_top_frames_tcc must be called only when the compiler is tcc') return false } + // Not reachable, but it looks like it's not detectable by V + return false } // TODO copypaste from os