Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Felipe Pena committed Nov 27, 2024
1 parent 35c96bf commit d695feb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions vlib/v/markused/markused.v
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ pub fn mark_used(mut table ast.Table, mut pref_ pref.Preferences, ast_files []&a
charptr_idx_str + '.vstring_literal',
]
$if windows {
core_fns << panic_deps
if 'no_backtrace' !in pref_.compile_defines {
core_fns << panic_deps
}
}
if table.used_features.used_modules.len > 0 {
core_fns << panic_deps
Expand Down Expand Up @@ -242,7 +244,8 @@ pub fn mark_used(mut table ast.Table, mut pref_ pref.Preferences, ast_files []&a
if k.ends_with('.str') || k.ends_with('.auto_str') {
if table.used_features.auto_str
|| table.used_features.print_types[mfn.receiver.typ.idx()]
|| table.used_features.debugger || table.used_features.used_modules.len > 0 {
|| table.used_features.asserts || table.used_features.debugger
|| table.used_features.used_modules.len > 0 {
all_fn_root_names << k
}
continue
Expand Down

0 comments on commit d695feb

Please sign in to comment.