Skip to content

Commit

Permalink
fix v-analyzer
Browse files Browse the repository at this point in the history
  • Loading branch information
felipensp committed Nov 29, 2024
1 parent 6e4a5c8 commit 9e666e7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions vlib/v/markused/markused.v
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9e666e7

Please sign in to comment.