From 9e666e724652773eb513b05aeb646f2003132f08 Mon Sep 17 00:00:00 2001 From: Felipe Pena Date: Fri, 29 Nov 2024 20:11:18 -0300 Subject: [PATCH] fix v-analyzer --- vlib/v/markused/markused.v | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vlib/v/markused/markused.v b/vlib/v/markused/markused.v index d739495923e990..c4dc63a5fd057e 100644 --- a/vlib/v/markused/markused.v +++ b/vlib/v/markused/markused.v @@ -73,6 +73,10 @@ pub fn mark_used(mut table ast.Table, mut pref_ pref.Preferences, ast_files []&a if 'no_backtrace' !in pref_.compile_defines { core_fns << panic_deps } + } $else { + if 'use_libbacktrace' in pref_.compile_defines { + core_fns << 'print_libbacktrace' + } } if table.used_features.used_modules.len > 0 { core_fns << panic_deps