1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

v.markused: mark all pub functions on -shared -skip-unused

This commit is contained in:
Delyan Angelov
2021-04-12 09:24:07 +03:00
parent d7a64bbc8a
commit 8193efb379
2 changed files with 27 additions and 19 deletions

View File

@@ -143,6 +143,10 @@ pub fn mark_used(mut table ast.Table, pref &pref.Preferences, ast_files []ast.Fi
continue
}
}
if mfn.is_pub && pref.is_shared {
all_fn_root_names << k
continue
}
}
if pref.is_debug {
all_fn_root_names << 'panic_debug'